-
Notifications
You must be signed in to change notification settings - Fork 94
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
Cypress: Improve request token handling, attachments test #5129
Conversation
* Use `this.requesttoken` rather than `cy.get(@requesttoken)` to use the same value rather than re-evaluating the query. * After visit `this.requesttoken` will be set. No need to attempt to load the token from the window if it is not. * Use a simple `if` statement instead of `cypress-if`. * This also cleans up the cypress logs significantly. Signed-off-by: Max <[email protected]>
* call `cy.showHiddenfiles()` before loading the page. * Clear `requesttoken` in `cy.login()`. Signed-off-by: Max <[email protected]>
Signed-off-by: Max <[email protected]>
Fix the warning in CI. Signed-off-by: Max <[email protected]>
Signed-off-by: Max <[email protected]>
6996158
to
2263c8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking into this! Changes look sensible, and great to get rid of cypress-if
again 🎉
/backport to stable28 |
/backport to stable28 |
The backport to stable28 failed. Please do this backport manually. # Switch to the target branch and update it
git checkout stable28
git pull origin stable28
# Create the new backport branch
git checkout -b fix/foo-stable28
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123
# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable28 Error: Unknown error More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport |
📝 Summary
Make sure to reuse the same token as long as its valid and clear it when it does not match the current session anymore (
login
,visit
).Also make the cypress logs less verbose and easier to parse.
🖼️ Screenshots
🚧 TODO
🏁 Checklist
npm run lint
/npm run stylelint
/composer run cs:check
)