Skip to content

Add e2e coverage for Watch, Docs, Journeys, Short-links, Videos admin, Resources#9040

Draft
kiran-redhat wants to merge 4 commits intomainfrom
cursor/e2e-gap-coverage-ad59
Draft

Add e2e coverage for Watch, Docs, Journeys, Short-links, Videos admin, Resources#9040
kiran-redhat wants to merge 4 commits intomainfrom
cursor/e2e-gap-coverage-ad59

Conversation

@kiran-redhat
Copy link
Copy Markdown
Contributor

Summary

Adds Playwright scenarios that were previously missing across several apps, and extends the scheduled e2e workflow to deploy and test resources alongside the other preview apps.

Changes

  • Watch (watch-e2e): Regression scan for bad VideoCard hrefs; smoke for home link (non-English), language dialog combobox enablement, hero carousel swipe, and unmute → inline player controls on a chapter page.
  • Watch modern (watch-modern-e2e): Asserts translated home copy on / and covers /modern-test content.
  • Docs (docs-e2e): Sidebar navigation from Welcome → Basics → Architecture Concepts.
  • Journeys (journeys-e2e): Opens a second featured journey from /home (excluding Fact or Fiction); reduces Fact or Fiction visibility wait to 90s with an inline comment (repo e2e rule cap).
  • Short links (short-links-e2e): Optional happy-path redirect when SHORT_LINK_HAPPY_PATH_URL is set (skipped otherwise).
  • Videos admin (videos-admin-e2e): Optional email/password sign-in to dashboard when PLAYWRIGHT_VIDEOS_ADMIN_EMAIL / PLAYWRIGHT_VIDEOS_ADMIN_PASSWORD are set.
  • Resources (resources-e2e): Same VideoCard href regression as Watch.
  • CI (.github/workflows/e2e-tests.yml): Adds resources to the deploy matrix, resources-e2e to manual dispatch options, RESOURCES_VERCEL_PROJECT_ID for deploy, and forwards optional secrets for the new gated tests.

Verification

  • pnpm exec nx run-many --target=lint --projects=watch-e2e,watch-modern-e2e,docs-e2e,short-links-e2e,journeys-e2e,videos-admin-e2e,resources-e2e
  • pnpm exec nx run-many --target=type-check --projects=watch-e2e,watch-modern-e2e,docs-e2e,short-links-e2e,journeys-e2e,videos-admin-e2e,resources-e2e

Follow-up (repo configuration)

To enable the gated tests in CI, add GitHub Actions secrets:

  • SHORT_LINK_HAPPY_PATH_URL — full URL of a known-good short link in the stage/preview environment.
  • PLAYWRIGHT_VIDEOS_ADMIN_EMAIL / PLAYWRIGHT_VIDEOS_ADMIN_PASSWORD — Firebase test user for videos-admin preview.

Without these, the corresponding specs remain skipped and do not fail the suite.

Slack Thread

Open in Web Open in Cursor 

Extend watch, watch-modern, docs, journeys, short-links, videos-admin, and resources e2e suites; wire resources deploy into daily e2e and pass optional secrets for short-link and videos-admin flows. Align journeys cold-load timeout with the 90s e2e rule.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 18, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 29319d65-3ab0-4201-84fc-f29d5398bd8c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/e2e-gap-coverage-ad59

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 18, 2026

Fails
🚫 Please ensure your PR title matches commitlint convention.
🚫 Please assign someone to merge this PR.
🚫 Please request a reviewer for this PR.

(pr title - Add e2e coverage for Watch, Docs, Journeys, Short-links, Videos admin, Resources):

subject may not be empty

type may not be empty

Generated by 🚫 dangerJS against 4816468

@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented Apr 18, 2026

View your CI Pipeline Execution ↗ for commit 4816468

Command Status Duration Result
nx run-many --target=vercel-alias --projects=watch ✅ Succeeded 2s View ↗
nx run-many --target=upload-sourcemaps --projec... ✅ Succeeded 5s View ↗
nx run-many --target=vercel-alias --projects=re... ✅ Succeeded 2s View ↗
nx run-many --target=deploy --projects=watch ✅ Succeeded 46s View ↗
nx run-many --target=vercel-alias --projects=jo... ✅ Succeeded 2s View ↗
nx run-many --target=upload-sourcemaps --projec... ✅ Succeeded 5s View ↗
nx run-many --target=vercel-alias --projects=vi... ✅ Succeeded 2s View ↗
nx run-many --target=upload-sourcemaps --projec... ✅ Succeeded 4s View ↗
Additional runs (13) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2026-04-18 09:27:16 UTC

@github-actions github-actions Bot requested a deployment to Preview - watch-modern April 18, 2026 09:21 Pending
@github-actions github-actions Bot requested a deployment to Preview - resources April 18, 2026 09:21 Pending
@github-actions github-actions Bot requested a deployment to Preview - journeys April 18, 2026 09:21 Pending
@github-actions github-actions Bot requested a deployment to Preview - short-links April 18, 2026 09:21 Pending
@github-actions github-actions Bot requested a deployment to Preview - videos-admin April 18, 2026 09:21 Pending
@github-actions github-actions Bot temporarily deployed to Preview - short-links April 18, 2026 09:24 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - watch April 18, 2026 09:24 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - journeys April 18, 2026 09:24 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - resources April 18, 2026 09:24 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - videos-admin April 18, 2026 09:24 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - watch-modern April 18, 2026 09:24 Inactive
@github-actions
Copy link
Copy Markdown
Contributor

The latest updates on your projects.

Name Status Preview Updated (UTC)
short-links ✅ Ready short-links preview Sat Apr 18 21:26:17 NZST 2026

@github-actions
Copy link
Copy Markdown
Contributor

The latest updates on your projects.

Name Status Preview Updated (UTC)
docs ✅ Ready docs preview Sat Apr 18 21:26:18 NZST 2026

@github-actions
Copy link
Copy Markdown
Contributor

The latest updates on your projects.

Name Status Preview Updated (UTC)
watch-modern ✅ Ready watch-modern preview Sat Apr 18 21:26:19 NZST 2026

@github-actions
Copy link
Copy Markdown
Contributor

The latest updates on your projects.

Name Status Preview Updated (UTC)
videos-admin ✅ Ready videos-admin preview Sat Apr 18 21:26:25 NZST 2026

@github-actions
Copy link
Copy Markdown
Contributor

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys ✅ Ready journeys preview Sat Apr 18 21:26:29 NZST 2026

@github-actions
Copy link
Copy Markdown
Contributor

The latest updates on your projects.

Name Status Preview Updated (UTC)
resources ✅ Ready resources preview Sat Apr 18 21:26:32 NZST 2026

@github-actions
Copy link
Copy Markdown
Contributor

The latest updates on your projects.

Name Status Preview Updated (UTC)
watch ✅ Ready watch preview Sat Apr 18 21:26:40 NZST 2026

…es from specific .env files

- Replaced dotenv configuration with a custom loader for environment variables in multiple Playwright config files across various apps.
- Enhanced test specifications to improve visibility checks and timeout handling in e2e tests for journeys and watch applications.
- Updated selectors and assertions to ensure robustness in UI tests, particularly for dynamic content and navigation elements.
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