-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Flaky Test] shows a warning if user does not have permission to create navigation menus #37604
Comments
Reopened by my random branch. Closing again as I know why this failed. |
This could be because the endpoints no longer 403 for lower perm users: // Expect a console 403 for requests to:
// * /wp/v2/settings?_locale=user
// * /wp/v2/templates?context=edit&post_type=post&per_page=100&_locale=user
expect( console ).toHaveErrored(); |
I've personally seen this fail quite regularly with this error:
examples:
The artifact still shows the logged in user as admin (in the top-right corner it should say 'Howdy, contributor!'), so I think that's where the issue lies: |
I'm going to skip this test (#42693). BTW, I had started migrating the nav block tests to playwright a couple of months ago, but haven't had time to finish this effort. I've pushed a draft PR - #42695. I actually got stuck on migrating the permissions tests because I hadn't been able to figure out a way to log in as a different user in playwright tests. |
This issue has gone 30 days without any activity. |
Flaky test detected. This is an auto-generated issue by GitHub Actions. Please do NOT edit this manually.
Test title
shows a warning if user does not have permission to create navigation menus
Test path
specs/editor/blocks/navigation.test.js
Errors
[2021-12-23T05:40:55.695Z]
Test passed after 1 failed attempt ondocs/36278-gen-theme-ref
.[2022-01-05T14:17:11.192Z]
Test passed after 1 failed attempt ontrunk
.[2022-01-13T08:15:44.893Z]
Test passed after 1 failed attempt onadd-context-i18n-light
.[2022-04-04T09:02:24.920Z]
Test passed after 2 failed attempts ontry/auto-select-first-nav-menu-if-solo
.[2022-07-19T12:01:31.684Z]
Test passed after 1 failed attempt onadd/author-nicename-template
.[2022-07-20T11:03:06.317Z]
Test passed after 1 failed attempt onadd/html-tokenizer-2
.[2022-07-26T07:36:35.735Z]
Test passed after 1 failed attempt onfix/replace-clickable-divs-with-buttons
.The text was updated successfully, but these errors were encountered: