Skip to content

Playwright Migration: mostReadPage#14173

Open
MeriemMechri wants to merge 6 commits into
latestfrom
playwright-mostReadPage-migration
Open

Playwright Migration: mostReadPage#14173
MeriemMechri wants to merge 6 commits into
latestfrom
playwright-mostReadPage-migration

Conversation

@MeriemMechri

@MeriemMechri MeriemMechri commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Resolves JIRA: WS-2724

Summary

  • Added new Playwright test suites and a spec for mostReadPage (canonical + .lite variants), 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.

Code changes

Testing

  1. List the steps required to test this PR.

Useful Links

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 + .lite variants), 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 =
Comment thread ws-nextjs-app/playwright/specialFeatures/atiAnalytics/assertions.ts
Comment thread ws-nextjs-app/playwright/specialFeatures/atiAnalytics/assertions.ts
Comment thread ws-nextjs-app/playwright/specialFeatures/atiAnalytics/assertions.ts Outdated
Comment thread ws-nextjs-app/playwright/specialFeatures/atiAnalytics/assertions.ts Outdated
Comment thread ws-nextjs-app/playwright/specialFeatures/atiAnalytics/assertions.ts Outdated
@MeriemMechri MeriemMechri marked this pull request as ready for review July 2, 2026 12:00
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