-
-
Notifications
You must be signed in to change notification settings - Fork 29
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 one failing E2E test on Firefox, skip the other one #1809
Conversation
Unit Test Results362 tests 362 ✅ 12s ⏱️ Results for commit dba024c. ♻️ This comment has been updated with latest results. |
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.
This is great detective work, Robin! Once you've resolved @myieye 's comments I'd like to get this merged so that future PRs can benefit from the green this will bring back.
It seems that reloading the page immediately after editing an entry isn't triggering the autosave on Firefox. We can work around this by navigating to another entry before reloading, which does trigger the autosave.
There appears to be a Playwright bug with locator.fill() on Firefox, where the locator waits forever for the textarea to be editable. This happens even if you have added "expect(...).toBeEditable()" immediately before the locator.fill(). Since this bug appears to be Firefox-specific, we will simply skip this test on Firefox until the bug is solved.
63cf775
to
0ec6a7e
Compare
Firefox is slower on this test for some reason, and we do want to make sure it doesn't time out and make an otherwise-green test run go red.
Fixes #1801
Description
We currently have two E2E tests that fail on Firefox while they pass on Chrome.
One of them appears to be caused by
reload()
not triggering our page autosave when it happens immediately after alocator.fill()
. I suspect that thereload()
isn't triggering theblur
event which would allow our autosave to trigger, but only on Firefox (for reasons that would take so long to determine that I figure it's not worth spending the time). I solved this one by clicking on another entry before running thereload()
, which forces the just-entered data to autosave and thus the rest of the test passes as it should.The other test appears to be running into a Playwright bug with
locator.fill()
on Firefox, where the locator thinks the input field (or textarea in this case) is not editable. This happens even if you putexpect(...).toBeEditable()
immediately before the.fill()
. Theexpect
passes, but then the locator waits forever (or rather, until the test times out) for the text area to be editable, for some reason not realizing that it is editable. Since this appears to be caused by a Playwright and/or Firefox bug rather than by our code, and the test passes in Chromium, I decided to simply have this test skipped on Firefox until such time as thelocator.fill()
bug gets resolved.Checklist
Testing
npm run test-e2e
; all E2E tests should now pass.