dougnoel / sentinel

A Selenium/Appium framework that enables users to focus on automating web and windows tests, so that automated tests can be written in a non-technical way in the same amount of time as manual tests can be executed.
Apache License 2.0
11 stars 13 forks source link

Implement download test page + Same-Origin test file #509

Closed tyBouch closed 1 year ago

tyBouch commented 1 year ago

As it stands we're reusing the radiobutton page for downloads. As a user we should have an independent page for testing downloads.

In addition, browsers now treat local files as cross-origin. This means re-naming with the download attribute is no longer possible with local files. To solve this problem a same-origin text file blob should be created for download on page creation. This can be implemented in the new download page.

tyBouch commented 1 year ago

To note we need the same-origin as our new functionality includes a check for a dynamically changing date tag in the file name. In order to change the download date with the download attribute, this needs to be done.