Skip to content

Commit

Permalink
Add automatted tests for Nav block editable list view (#49433)
Browse files Browse the repository at this point in the history
* Scaffold initial test

* Assert on menu structure

* Refine structure test filters

* Assert using appender to add menu items

* Improve assertions to check the type of the link being inserted

* Improve asserting on Page and Custom links being 1st and 2nd results

* Test block removal

* Make test describe blocks consistent with other tests

* Add test for editing items

* Test for adding submenus

* Remove uneccessary test wording

* Remove unecessary click on List View tab

Should be visible by default. Left one test which will fail if the tab isn’t automatically pre-selected.

* Extract blocks to a var

* Add Link Control test helper and extract relevant portions of tests

* Extract util for getting result text

* Remove unneeded focus of item to trigger options menu

* Avoid overly complex selectors by targetted Submenu for item removal test

* Remove comment

* Test editing a menu item actually updates in the list view

* Remove .only
  • Loading branch information
getdave authored Mar 30, 2023
1 parent 8528e49 commit d9dd82a
Showing 1 changed file with 459 additions and 0 deletions.
Loading

1 comment on commit d9dd82a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in d9dd82a.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4563941575
📝 Reported issues:

Please sign in to comment.