Overview
We need this for accessibility, but it also provides a way to add components in e2e tests without needing to replicate drag and drop, something that is prone to intermittent fails.
Proposed resolution
- Provide a way to add components to an empty layout without drag and drop
- Refactor e2e tests that use drag and drop for this to use the new interaction. If those tests are skipped, they should be unskipped as part of this MR
User interface changes
Issue fork experience_builder-3500542
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
bnjmnmThis brings back every skip added in #3500549: Temporarily skip intermittently failing e2e tests, and I've rerun the Cypress tests many times and they pass every time.
components-operations,empty-canvasandpublish-buttonnow add a component to the empty layout by clicking the component instead of dragging it. (turns out the UI already does this! Just no affordance to make it evident)global-regionswas unskipped but no changes as the drag and drop operation is never in the canvas area. Seems to be passingcomponents-slotsearlier today was removed, but only because a skip is already present on the higher leveldescribe()that was added last month. The scope of this issue is only to remove skips added in #3500549Comment #5
wim leersComment #7
wim leers🥳 for more reliable tests! (And running the entire test suite again.)
Comment #8
wim leersThis restored all tests that #3500549: Temporarily skip intermittently failing e2e tests temporarily skipped.
Comment #9
wim leersFYI: when this was merged,
component-operations.cy.jsfailed during the0.xtest run 🙈 But it failed ~20 LoC earlier than the change here.Failure:
Relevant test code:
Comment #11
wim leersClosed #3500535: Remove pause() call in Cypress editHeroComponent command thanks to this :)