Skip to content

Commit

Permalink
QE-13283 use absolute path for file upload (#365)
Browse files Browse the repository at this point in the history
Jira: [QE-13283](https://dominodatalab.atlassian.net/browse/QE-13283)

Issue: Using relative path is failing to upload files.

Solution: Use absolute path when uploading files.




[QE-13283]:
https://dominodatalab.atlassian.net/browse/QE-13283?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

---------

Co-authored-by: Xin Dong <104880864+ddl-xin@users.noreply.github.com>
  • Loading branch information
ddl-kavya and ddl-xin authored Sep 8, 2023
1 parent 6012dfa commit f54506a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project closely adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.162.0
- Fix - use absolute path when uploading files using drag and drop

## 0.161.0
- Change - add .txt as browser console log file suffix

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cucu"
version = "0.161.0"
version = "0.162.0"
license = "MIT"
description = "Easy BDD web testing"
authors = ["Domino Data Lab <open-source@dominodatalab.com>"]
Expand Down
2 changes: 1 addition & 1 deletion src/cucu/steps/file_input_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ def drag_and_drop_file(ctx, name, filepath):
f'looked for drag & drop target "{name}" and found "{drop_target_html}"'
)
file_input = ctx.browser.execute(JS_DROP_FILE, drop_target, 0, 0)
file_input.send_keys(filepath)
file_input.send_keys(os.path.abspath(filepath))

0 comments on commit f54506a

Please sign in to comment.