Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

48 support file download #98

Merged
merged 8 commits into from
Mar 4, 2021

Conversation

jevgenijusmarinuskinas
Copy link
Collaborator

@jevgenijusmarinuskinas jevgenijusmarinuskinas commented Feb 22, 2021

  • Added new method downloadFile.
  • Added tests.
  • Webkit is skipped for now (bug registered).

image

example/tests/elementActions.test.js Outdated Show resolved Hide resolved
example/tests/elementActions.test.js Outdated Show resolved Hide resolved
example/tests/elementActions.test.js Outdated Show resolved Hide resolved
example/tests/elementActions.test.js Show resolved Hide resolved
framework/Element.js Outdated Show resolved Hide resolved
jest-playwright.config.js Outdated Show resolved Hide resolved
jest-playwright.config.js Outdated Show resolved Hide resolved
@@ -30,6 +30,7 @@
"@babel/preset-env": "^7.0.0",
"async-retry": "^1.0.0",
"axios": "^0.21.1",
"fs-extra": "^9.1.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is only for empty dir, perhaps
fs.rmdir(dir, { recursive: true }) can be used instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one does not work properly when directory has files. fs-extra removed files from the dear. I think it is good to have it in our package for extra methods related to files.

@jevgenijusmarinuskinas jevgenijusmarinuskinas merged commit 19c7626 into playwright Mar 4, 2021
@jevgenijusmarinuskinas jevgenijusmarinuskinas deleted the 48-support_file_download branch March 4, 2021 11:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants