-
Notifications
You must be signed in to change notification settings - Fork 228
Remove unnecessary / falky tests #2255
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
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
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.
Pull Request Overview
This PR optimizes the Playwright E2E test suite by removing flaky, slow, and overly detailed tests that were causing CI runs to exceed 60 minutes and suffer intermittent failures. The focus is on eliminating timing-based assertions, browser-specific tests, and UI implementation details while retaining coverage of critical business flows.
Key changes:
- Removed entire WDSZoomControls test suite (70+ second timeouts, complex browser-specific waits)
- Eliminated timing-based performance tests across multiple files
- Removed redundant responsive/viewport tests
Reviewed Changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| WDSZoomControls.spec.ts | Completely removed file containing highly flaky canvas zoom tests with browser-specific timing dependencies |
| WDSViewModes.spec.ts | Removed complex state preservation test across mode switches |
| WDSContextFiltering.spec.ts | Removed multi-branch conditional context filtering test |
| UserManagementPermissions.spec.ts | Removed redundant permission creation tests and overly detailed UI state tests |
| UserManagementFilter.spec.ts | Removed flaky timing-based performance tests |
| UserManagement.spec.ts | Removed redundant tablet and desktop viewport tests |
| ThemeToggle.spec.ts | Removed non-functional div check test and duplicate mobile visibility test |
| SideMenu.spec.ts | Removed redundant responsive viewport tests |
| ProfileSection.spec.ts | Removed low-value external link clickability tests |
| ObjectExplorerResourceActions.spec.ts | Removed granular CSS class and icon type assertions |
| ObjectExplorerKindNamespace.spec.ts | Removed detailed dropdown filtering UX test |
| Navbar.spec.ts | Removed flaky load time and layout shift tests |
| Login.spec.ts | Removed unstable fullscreen API test |
| LanguageSwitcher.spec.ts | Removed flaky persistence test with race conditions and redundant tablet test |
| Install.spec.ts | Removed granular UI interaction and platform selection tests |
| ITSTableFeature.spec.ts | Removed complex state persistence test across search actions |
| ITS.spec.ts | Removed redundant mobile responsive test |
| BPNavigation.spec.ts | Removed timing-based page load performance test |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@alokdangre please look at the failing ci |
…ts by removing redundant navigation and simplifying URL checks.
…ading/refreshing the page
|
/cc @btwshivam should i reduce the time further |
|
@alokdangre: GitHub didn't allow me to request PR reviews from the following users: further, should, i, reduce, the, time. Note that only kubestellar members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
File 1:
|
|
I made the issue #2263 for further bugs in playwright current ci |
|
Ok good but next remove unwanted comment in some PR |
| ).toBeVisible(); | ||
| } | ||
| }); | ||
| // REMOVED: Overly detailed UI interaction tests - these are too granular for e2e testing |
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.
Lets keep it
| const updatedScriptText = await scriptElement.textContent(); | ||
| expect(updatedScriptText).toContain('--platform k3d'); | ||
| }); | ||
| // REMOVED: Detailed platform selection tests - too granular for e2e, better as unit tests |
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.
Keep this too
| const isNotFullscreen = await loginPage.isFullscreen(); | ||
| expect(isNotFullscreen).toBe(false); | ||
| }); | ||
| // REMOVED: Flaky fullscreen test - browser API behavior varies across environments |
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.
keep this
| await expect(raiseIssueItem).toBeEnabled(); | ||
| }); | ||
| }); | ||
| // REMOVED: External link tests - these only test that links are clickable, not actual functionality |
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.
keep this
|
LGTM label has been added. DetailsGit tree hash: e882462d168514b81cd4ab498212dda73601c1ec |
Description
This PR optimizes the Playwright E2E test suite to reduce CI execution time and improve stability, while keeping all critical business flows covered.
Current CI runs took 60+ minutes and suffered intermittent failures due to:
This PR reduces runtime and improves determinism, giving us a stable, fast CI pipeline with meaningful E2E coverage.
File-by-File Breakdown
1.
WDSZoomControls.spec.tsRemoved: Entire file
Why:
ReactFlowHelper,WDSPage, custom polling utilitiesCoverage still exists in:
WDS.spec.tsWDSViewModes.spec.ts2.
ThemeToggle.spec.tsKept:
Removed:
3.
Login.spec.tsRemoved: Fullscreen API tests (unstable in CI) and duplicate responsive checks.
4.
Navbar.spec.tsRemoved:
Functional navigation tests remain.
5.
Dashboard.spec.tsRemoved:
Dashboard main behavior remains covered.
6.
LanguageSwitcher.spec.tsRemoved:
7.
UserManagement.spec.tsRemoved: Tablet & desktop responsive tests.
Kept: Mobile viewport + core flows.
8.
UserManagementCRUD.spec.tsKept / Re-added:
High-value user-management guardrail tests.
9.
UserManagementFilter.spec.tsRemoved: Timing-based performance tests.
Functional filtering remains verified.
10.
UserManagementPermissions.spec.tsRemoved:
Permission logic still validated.
11.
BPNavigation.spec.tsRemoved: Timing-based navigation test.
12.
SideMenu.spec.tsRemoved: Duplicate viewport responsive tests.
Navigation, visibility, and collapse/expand tests kept.
13.
Install.spec.tsRemoved:
Core Install experience remains covered.
14.
ITSTableFeature.spec.tsRemoved: Complex state-persistence chain test.
Sorting, pagination, selection remain covered.
15.
ProfileSection.spec.tsRemoved: Low-value external-link clickability tests.
16.
WDSContextFiltering.spec.tsRemoved: Multi-branch conditional filtering test.
Basic context filtering remains tested.
17.
ITS.spec.tsRemoved: Redundant small-viewport responsiveness test.
ITS actions, search, badges, and keyboard shortcuts remain verified.
18.
ITSImportCluster.spec.tsKept:
No removals here—this is a critical onboarding workflow.
19.
ObjectExplorerResourceActions.spec.tsRemoved:
Core resource interactions remain intact.
20.
ObjectExplorerKindNamespace.spec.tsRemoved:
Selections and resource updates remain covered.
21.
WDSViewModes.spec.tsRemoved:
Kept strong coverage for:
Related Issue
Fixes #<issue_number>
Changes Made
Checklist
Please ensure the following before submitting your PR:
Screenshots or Logs (if applicable)
Additional Notes