-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
ci: improve stability of E2E tests #3983
Conversation
✅ Deploy Preview for design-insights ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for oss-insights ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
## [2.59.0-beta.4](v2.59.0-beta.3...v2.59.0-beta.4) (2024-08-19) ### 🔁 Continuous Integration * improve stability of E2E tests ([#3983](#3983)) ([7668b06](7668b06))
## [2.59.0](v2.58.0...v2.59.0) (2024-08-21) ### 🔁 Continuous Integration * improve stability of E2E tests ([#3983](#3983)) ([7668b06](7668b06)) ### 🍕 Features * copy `LotteryFactorChart` as image ([#3987](#3987)) ([fa3255e](fa3255e)) * implement the CopyContainer component for copying it's contents as an image ([#3975](#3975)) ([cee5fa8](cee5fa8)) ### 🐛 Bug Fixes * add tooltip for long titles ([#3969](#3969)) ([e3404df](e3404df)) * adjust workspace upgrade pricing modal ([#3995](#3995)) ([798041a](798041a)) * make timezone optional for onboarding and user settings ([#3972](#3972)) ([f1795a3](f1795a3)) * reverted a file that accidentally went in cee5fa8 ([#3979](#3979)) ([d776a13](d776a13)) * Searching for a user/repository name throws error and crashes page ([#3980](#3980)) ([73f1c2c](73f1c2c)) * update PostHog SDK to latest version (1.152.7) ([#3996](#3996)) ([a5b7f3d](a5b7f3d))
@@ -30,8 +30,7 @@ test.describe("large screen", () => { | |||
const dialog = await page.getByRole("dialog", { name: "Add repository to Workspace", exact: true }); | |||
await expect(dialog).toBeVisible(); | |||
|
|||
await dialog.getByRole("button", { name: "Connect with GitHub", exact: true }).click(); | |||
await expect(page.url()).toContain("https://github.com/login"); | |||
expect(dialog.getByRole("button", { name: "Connect with GitHub", exact: true })).toBeVisible(); |
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.
I wonder why clicking it and checking for the Github login was flaky. I'll need to revisit this.
await expect(dialog).toBeVisible(); | ||
|
||
await dialog.getByRole("button", { name: "Connect with GitHub", exact: true }).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.
If we remove the remove the click, we can probably still check for the login button in the dialog, but again, need to see what's up with the click not firing consistently to check the login URL.
Description
Related Tickets & Documents
Closes #3946
Closes #3557
Mobile & Desktop Screenshots/Recordings
Steps to QA
Tier (staff will fill in)
[optional] What gif best describes this PR or how it makes you feel?