Testing: Enable or remove skipped e2e tests #15538
Labels
[Status] In Progress
Tracking issues with work in progress
[Type] Automated Testing
Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
[Type] Tracking Issue
Tactical breakdown of efforts across the codebase and/or tied to Overview issues.
We have recently disabled a few e2e tests to make Travis job pass consistently. Related PRs: #15059, #14986, #15211.
This issue is opened to coordinate efforts to either fix or remove all skipped e2e tests:
packages/e2e-tests/specs/block-deletion.test.js
results in two remaining blocks and positions the caret at the end of the second block
(disabled in Testing: Skip unreliable end-to-end tests #15059), more details in Testing: Skip unreliable end-to-end tests #15059 (comment):packages/e2e-tests/specs/embedding.test.js
should transform from video to embed block when YouTube URL is pasted
(disabled in Testing: Skip unreliable end-to-end tests #15059)should transform from image to embed block when Instagram URL is pasted
(disabled in Testing: Skip unreliable end-to-end tests #15059)should transform from audio to embed block when Soundcloud URL is pasted
(disabled in Testing: Skip unreliable end-to-end tests #15059)packages/e2e-tests/specs/links.test.js
allows autocomplete suggestions to be selected with the mouse
(old issue Tests: Enable a disabled fragile link e2e test #13044, previous attempt to fix Fix unreliable link test #13161, disabled in Testing: Skip unreliable end-to-end tests #15059)allows autocomplete suggestions to be navigated with the keyboard
(disabled in Tests: Disable randomly failing e2e tests #15211)packages/e2e-tests/specs/nux.test.js
- the following tests were never enabled even though blocking issues were resolved, they should be removed if they no longer are relevantshould show tips as disabled if all tips have been shown
should reset tips if all tips have been shown and show tips was unchecked
should show tips if "Show tips" was disabled on a draft and then enabled
packages/e2e-tests/specs/plugins/wp-editor-meta-box.test.js
(disabled in Tests: Disable randomly failing e2e tests #15211), more info in Tests: Disable randomly failing e2e tests #15211 (comment):packages/e2e-tests/specs/taxonomies.test.js
should be able to open the tags panel and create a new tag if the user has the right capabilities
(disabled in Tests: Disable randomly failing e2e tests #15211), more details in Tests: Disable randomly failing e2e tests #15211 (comment):Given that taxonomies are loaded in the sidebar and aren't mandatory on the first load of the editor, it might be enough to refactor test to ensure that it waits until data is loaded with REST API.
Reproducing issues
The biggest challenge we encountered in the past was the fact that all the aforementioned tests were failing randomly on Travis but it was nearly impossible to reproduce it locally. There is a plan to add some debugging capabilities to
npm run test-e2e
command but for the time being, I recommend using the following patch to slow down CPU and network to simulate conditions similar to Travis. You still might need to run the same test a few times to be able to see failure.It is super useful to run e2e tests in watch mode and with the real browser:
The text was updated successfully, but these errors were encountered: