-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
chore: adds and fixes e2e for content history #20098
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
5666acb
to
b127991
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests look good to me and are passing locally. But some of the other tests are now failing. Maybe related to the flaky tests already mentioned... 🤔
Yes I'm planning to come back to it after the beta and investigate the timeouts |
0c72b6f
to
be360c3
Compare
const closeSuccessNotification = async (page: Page) => { | ||
const successNotification = page.getByRole('alert', { name: /success/i }); | ||
if (await successNotification.isVisible()) { | ||
await successNotification.getByRole('button', { name: /close/i }).click(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not positive but it looks like this util might do the same thing, or is meant to do the same thing...
strapi/tests/e2e/utils/shared.ts
Lines 27 to 35 in f75e3c6
/** | |
* Look for an element containing text, and then click a sibling close button | |
*/ | |
export const findAndClose = async ( | |
page: Page, | |
text: string, | |
role: string = 'status', | |
closeLabel: string = 'Close' | |
) => { |
What does it do?
Related issue(s)/PR(s)