-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The .selectFile
command does not work from an aliased fixture
#19803
Comments
The current implementation stores the fixture file contents, but does not persist the file name when you alias it - which your test is asserting on. This isn't a great experience, and we'll be resolving it in 9.4.0 - the fixture filename will be preserved through an alias. I'll have a PR up in a few minutes here. |
The new test is a work around for the test that depends on issue cypress-io/cypress#19803 to be fixed.
The new test is a work around for the test that depends on issue cypress-io/cypress#19803 to be fixed.
The code for this is done in cypress-io/cypress#19820, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
The file is not selected when using an aliased fixture, as follows on the docs of the new
.selectFile
command (on the From a fixture section.)Desired behavior
The file should correctly be selected from an aliased fixture.
Test code to reproduce
https://github.com/wlsf82/cy-hands-on-select-file/blob/main/cypress/integration/selectFile.spec.js#L21
Note: To test it out, change the test from
.skip()
to.only()
.Cypress Version
9.3.1
Other
Here is a screenshot of the failure.
The text was updated successfully, but these errors were encountered: