Playwright Migration: mostReadPage#14173
Open
MeriemMechri wants to merge 6 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Migrates the mostReadPage coverage from the legacy approach to Playwright, adding page-level smoke coverage and ATI analytics assertions so this page type is exercised consistently alongside other Playwright pageTypes.
Changes:
- Added new Playwright test suites and a spec for mostReadPage (canonical +
.litevariants), including basic 200-response checks. - Extended Playwright ATI analytics assertions to cover Most Read view/click events and Lite Site Summary “to main site” click events.
- Updated ATI analytics helper constants to include new component identifiers used by the new assertions.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| ws-nextjs-app/playwright/specialFeatures/atiAnalytics/helpers.ts | Adds component identifiers used by new ATI assertion helpers. |
| ws-nextjs-app/playwright/specialFeatures/atiAnalytics/assertions.ts | Updates page-view request matching and adds new ATI assertions for Most Read + Lite Site Summary; adjusts navigation click handling. |
| ws-nextjs-app/playwright/pageTypes/mostReadPage/suites.ts | Introduces canonical/lite and ATI/ATI-lite suite definitions for mostReadPage. |
| ws-nextjs-app/playwright/pageTypes/mostReadPage/mostReadPage.spec.ts | Adds Playwright test coverage for mostReadPage (status + ATI analytics assertions). |
Comment on lines
+45
to
49
| MOST_READ: 'most-read', | ||
| LITE_SITE_SUMMARY: 'lite-site-summary', | ||
| }; | ||
|
|
||
| export const isPageViewRequest = |
…eadPage-migration
…eadPage-migration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves JIRA: WS-2724
Summary
Code changes
Testing
Useful Links