-
Notifications
You must be signed in to change notification settings - Fork 12.9k
test: flaky should reset e2e password from the modal #36888
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
Conversation
|
Looks like this PR is ready to merge! 🎉 |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #36888 +/- ##
===========================================
+ Coverage 66.42% 66.45% +0.03%
===========================================
Files 3341 3343 +2
Lines 114284 114244 -40
Branches 21072 21181 +109
===========================================
+ Hits 75913 75926 +13
+ Misses 35686 35643 -43
+ Partials 2685 2675 -10
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
WalkthroughAdded a visibility assertion in LoginPage.waitForLogin to ensure the main landmark is visible after the login button disappears, strengthening the post-login wait condition in the E2E test. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant T as Test Runner
participant LP as LoginPage (page-object)
participant P as Playwright Page
T->>LP: waitForLogin()
LP->>P: wait for login button to be hidden
Note over LP,P: New step added
LP->>P: assert <main> landmark is visible
P-->>LP: visible
LP-->>T: done
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks (2 passed, 1 warning)❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
Poem
✨ Finishing touches
🧪 Generate unit tests
Comment |
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
apps/meteor/tests/e2e/page-objects/login.ts (1)
21-24: Good deflake; tighten the readiness signal to reduce residual flakiness.Adding the main landmark check is sensible. Consider also asserting that we’ve actually left the /login route and give CI more headroom with an explicit timeout.
Proposed tweak:
protected async waitForLogin() { - await expect(this.loginButton).not.toBeVisible(); - await expect(this.page.getByRole('main')).toBeVisible(); + await expect(this.loginButton).not.toBeVisible(); + // Ensure navigation/state left the login route + await expect(this.page).not.toHaveURL(/\/login\b/); + // Main content fully rendered (more generous in CI) + await expect(this.page.getByRole('main')).toBeVisible({ timeout: 30_000 }); }If the login screen also contains a
region in some flows (e.g., SSO, e2e-reset modal), please confirm this remains unambiguous; otherwise switch the assertion to a more specific, stable post-login element (e.g., sidebar navigation or rooms list).
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
apps/meteor/tests/e2e/page-objects/login.ts(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: CodeQL-Build
- GitHub Check: CodeQL-Build
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments
FLAKY-1542
Summary by CodeRabbit