Skip to content

Commit

Permalink
Combine frontend navigation tests into fewer tests to speed up e2e te…
Browse files Browse the repository at this point in the history
…sts (#50681)

There is quite a bit of setup needed for each of the frontend navigation tests, and by combining them into fewer tests we can speed them up and follow the best practices of write fewer but longer tests: https://playwright.dev/docs/best-practices#write-fewer-tests-but-longer-tests

* Simplify setup logic for creating navigation menu for frontend interaction tests

* Combine submenu interaction tests into one test

* Rename parent test to make it more clearly different from child test

* Combine overlay menu interactions into one test
  • Loading branch information
jeryj authored May 17, 2023
1 parent e312f9c commit 01248b8
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 252 deletions.
1 change: 1 addition & 0 deletions test/e2e/artifacts/storage-states/admin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"cookies":[{"name":"wordpress_test_cookie","value":"WP%20Cookie%20check","domain":"localhost","path":"/","expires":-1,"httpOnly":false,"secure":false,"sameSite":"Lax"},{"name":"wordpress_23778236db82f19306f247e20a353a99","value":"admin%7C1684446357%7Cdx01QADx42SHH9s4ikPkhkS07FzxnWES5FY2SsnwL7v%7C45404d74460259bc9148f2357f2180af488d65921b10ed5981fff860afa5c8ca","domain":"localhost","path":"/wp-content/plugins","expires":-1,"httpOnly":true,"secure":false,"sameSite":"Lax"},{"name":"wordpress_23778236db82f19306f247e20a353a99","value":"admin%7C1684446357%7Cdx01QADx42SHH9s4ikPkhkS07FzxnWES5FY2SsnwL7v%7C45404d74460259bc9148f2357f2180af488d65921b10ed5981fff860afa5c8ca","domain":"localhost","path":"/wp-admin","expires":-1,"httpOnly":true,"secure":false,"sameSite":"Lax"},{"name":"wordpress_logged_in_23778236db82f19306f247e20a353a99","value":"admin%7C1684446357%7Cdx01QADx42SHH9s4ikPkhkS07FzxnWES5FY2SsnwL7v%7C8ace4a8f867bc4e587d5264662296f90fcd133710cd0dd3386a92801816bd5d1","domain":"localhost","path":"/","expires":-1,"httpOnly":true,"secure":false,"sameSite":"Lax"},{"name":"wp-settings-1","value":"editor%3Dtinymce","domain":"localhost","path":"/","expires":1715809558.14,"httpOnly":false,"secure":false,"sameSite":"Lax"},{"name":"wp-settings-time-1","value":"1684273558","domain":"localhost","path":"/","expires":1715809558.14,"httpOnly":false,"secure":false,"sameSite":"Lax"}],"nonce":"fe590a7aae","rootURL":"http://localhost:8889/index.php?rest_route=/"}
Loading

0 comments on commit 01248b8

Please sign in to comment.