Skip to content

Add Perspective tests and general refactor#368

Merged
SteveChurchillSWO merged 2 commits intomainfrom
feature/MPT-18579-Perspective-Tests
Mar 5, 2026
Merged

Add Perspective tests and general refactor#368
SteveChurchillSWO merged 2 commits intomainfrom
feature/MPT-18579-Perspective-Tests

Conversation

@SteveChurchillSWO
Copy link

Description

Move filter-related locators and helper methods from BaseCreatePage and ResourcesPage into BasePage to centralize filter handling and avoid duplication. Add numerous utility improvements and documentation in BasePage (viewport fitting, getByAnyTestId, combo-box helpers, enhanced canvas waiters, aria/bringToFront helpers, screenshot delay, reset/select filter helpers and getActiveFilter). Update ResourcesPage to use centralized filters and add perspectives/save-perspective locators and helpers (navigation, reset, meta selectors, group-by/tag helpers). Add CloudAccounts navigation helper, refine tab-click logic to avoid redundant clicks and wait for canvases/progress bars, and expand PerspectivesPage with row selection, deletion and bulk-delete utilities. Remove the now-unneeded CreateAnomalyPage and a couple of redundant page methods to reduce duplication.

Related issue number

https://softwareone.atlassian.net/browse/MPT-18579

Move filter-related locators and helper methods from BaseCreatePage and ResourcesPage into BasePage to centralize filter handling and avoid duplication. Add numerous utility improvements and documentation in BasePage (viewport fitting, getByAnyTestId, combo-box helpers, enhanced canvas waiters, aria/bringToFront helpers, screenshot delay, reset/select filter helpers and getActiveFilter). Update ResourcesPage to use centralized filters and add perspectives/save-perspective locators and helpers (navigation, reset, meta selectors, group-by/tag helpers). Add CloudAccounts navigation helper, refine tab-click logic to avoid redundant clicks and wait for canvases/progress bars, and expand PerspectivesPage with row selection, deletion and bulk-delete utilities. Remove the now-unneeded CreateAnomalyPage and a couple of redundant page methods to reduce duplication.
Add explicit progress-bar waits and minor test improvements to reduce flakiness. Changes include:

- Call waitForAllProgressBarsToDisappear after deleting perspectives in PerspectivesPage.
- Add a detailed JSDoc for ResourcesPage.navigateToResourcesPageAndResetFilters describing its behavior (navigate to /resources, wait for progress bars, canvas render, reset filters, and wait for first resource item — 15s timeout) and recommending its use in beforeEach to get a clean state.
- Update a test title capitalization and add a test step to return to the resources page and reset filters between perspective operations.
- Add waitForAllProgressBarsToDisappear before deleting all perspectives in the perspective cleanup step.

These changes aim to stabilize E2E tests by ensuring pages are fully loaded and filters are reset before interacting with UI elements.
@SteveChurchillSWO SteveChurchillSWO marked this pull request as ready for review March 4, 2026 14:14
@SteveChurchillSWO SteveChurchillSWO merged commit 67ed4f3 into main Mar 5, 2026
41 checks passed
@SteveChurchillSWO SteveChurchillSWO deleted the feature/MPT-18579-Perspective-Tests branch March 5, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants