Skip to content

WS-3085-Add appropriate test coverage for /watch and /listen URLs - #14343

Merged
Nabeel1276 merged 12 commits into
latestfrom
WS-3085-add-appropriate-test-coverage
Aug 27, 2026
Merged

WS-3085-Add appropriate test coverage for /watch and /listen URLs#14343
Nabeel1276 merged 12 commits into
latestfrom
WS-3085-add-appropriate-test-coverage

Conversation

@Nabeel1276

@Nabeel1276 Nabeel1276 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Resolves JIRA: https://bbc.atlassian.net/browse/WS-3085

Summary

This PR adds integration test coverage for the /watch and /listen URL routes, ensuring they behave as expected. End-to-end coverage will be added once the new routing changes are live. A comprehensive set of as unit tests were covered in #14315

Code changes

  • Added two canonical integration tests for Tamil watch and listen
  • Added one canonical integration test for Gahuza watch
  • Added local fixture for Gahuza watch page
  • Update snapshots

Testing

  1. List the steps required to test this PR.

Useful Links

Copilot AI lite review requested due to automatic review settings August 25, 2026 14:33

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

Adds new integration test coverage (with snapshots and fixture data) for additional canonical /watch and /listen routes in the Next.js app, extending the existing page-level integration test suite.

Changes:

  • Added canonical integration tests + snapshots for Tamil /watch and /listen routes.
  • Added canonical integration test + snapshots for Gahuza /watch (but currently targets an /articles URL).
  • Added new Optimo fixture JSON for a Gahuza article used by the new integration test.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
ws-nextjs-app/integration/pages/watch/tamil/canonical.test.ts Adds Tamil canonical test coverage for the /watch route using existing shared canonical + media-player suites.
ws-nextjs-app/integration/pages/watch/tamil/snapshots/canonical.test.ts.snap Stores expected rendered output snapshots for the Tamil /watch canonical suite.
ws-nextjs-app/integration/pages/watch/gahuza/canonical.test.ts Adds Gahuza canonical test coverage under /watch (currently configured to hit an /articles pathname).
ws-nextjs-app/integration/pages/watch/gahuza/snapshots/canonical.test.ts.snap Stores expected rendered output snapshots for the Gahuza watch canonical suite (currently asserting /articles canonical URL).
ws-nextjs-app/integration/pages/listen/tamil/canonical.test.ts Adds Tamil canonical test coverage for the /listen route using existing shared canonical + audio media-player suites.
ws-nextjs-app/integration/pages/listen/tamil/snapshots/canonical.test.ts.snap Stores expected rendered output snapshots for the Tamil /listen canonical suite.
data/gahuza/articles/clyw2p2x138o.json Adds fixture data required to run the new Gahuza integration test.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread ws-nextjs-app/integration/pages/watch/gahuza/canonical.test.ts Outdated
@Nabeel1276 Nabeel1276 changed the title WS-3085-Add appropriate test coverage WS-3085-Add appropriate test coverage for /watch and /listen URLs Aug 25, 2026
Comment thread ws-nextjs-app/integration/pages/watch/gahuza/canonical.test.ts Outdated
@Nabeel1276
Nabeel1276 requested a review from alex-magana August 26, 2026 12:01
Comment thread ws-nextjs-app/integration/pages/listen/tamil/canonical.test.ts Outdated
@Nabeel1276
Nabeel1276 merged commit 4ed8a91 into latest Aug 27, 2026
18 checks passed
@Nabeel1276
Nabeel1276 deleted the WS-3085-add-appropriate-test-coverage branch August 27, 2026 09:27
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.

4 participants