-
Notifications
You must be signed in to change notification settings - Fork 110
Fix flaky cypress tests #6965
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
Fix flaky cypress tests #6965
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6965 +/- ##
=======================================
Coverage 51.82% 51.82%
=======================================
Files 476 476
Lines 40154 40154
Branches 985 985
=======================================
Hits 20811 20811
Misses 19237 19237
Partials 106 106 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Julius Knorr <[email protected]>
8470701 to
1340a21
Compare
Signed-off-by: Julius Knorr <[email protected]>
223fbe6 to
3210385
Compare
| .click() | ||
|
|
||
| // eslint-disable-next-line cypress/no-unnecessary-waiting | ||
| cy.wait(1000) |
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.
I did not figure out a way to make this wort otherwise. For some reason running on CI otherwise focusses the NcSelect 🤷
|
/backport to stable31 |
|
/backport to stable30 |
|
/backport to stable29 |
AndyScherzinger
left a comment
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.
🐘
runner 1 Assistant - Open translate dialog
Otherwise this test is flaky as it may not focus fast enough before entering text, also clicking my interfere with the autofocus of the language selection. Certainly the test could be improved but this is a quick fix to get back to green ci
runner 7 The session Api - signals closing connection
The issue is that the close api call was not awaited properly. This lead to situations where the push was called too early. Can be tested locally with adding a sleep on the backend in https://github.com/nextcloud/text/blob/tests/cypress-green/lib/Service/ApiService.php#L161