chore(samples): migrate headless-ssr-search-nextjs from Cypress to Playwright#7475
chore(samples): migrate headless-ssr-search-nextjs from Cypress to Playwright#7475alexprudhomme wants to merge 1 commit intomainfrom
Conversation
|
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
fefb173 to
4c91340
Compare
|
Tip All tests passed and all changes approved!🟢 UI Tests: 356 tests unchanged |
@coveo/atomic
@coveo/atomic-hosted-page
@coveo/atomic-legacy
@coveo/atomic-react
@coveo/auth
@coveo/bueno
@coveo/create-atomic
@coveo/create-atomic-component
@coveo/create-atomic-component-project
@coveo/create-atomic-result-component
@coveo/create-atomic-rollup-plugin
@coveo/headless
@coveo/headless-react
@coveo/shopify
commit: |
4c91340 to
1d361b9
Compare
35cc4a9 to
4f9c1ac
Compare
4f9c1ac to
1b2c57c
Compare
1b2c57c to
5cf0ccc
Compare
…aywright Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
5cf0ccc to
bf93334
Compare
KIT-5653
Problem
The
samples/headless-ssr/search-nextjssample uses Cypress for E2E testing with complex SSR/CSR rendering tests, search parameter management tests, and web vitals monitoring. As part of the Cypress removal effort (KIT-5486), it needs to be migrated to Playwright.Solution
cypress.config.ts,cypress/directory)cypress,cypress-repeat, andcypress-web-vitalsdependencies with@playwright/teste2eande2e:watchscripts to use Playwrightplaywright.config.tswith multi-browser support,baseURL, and dev server auto-starttests/utils.ts— shared helpers (waitForHydration,getResultTitles, selectors)tests/smoke.spec.ts— SSR rendering validation, CSR hydration, timestamp comparison, console error monitoring, search functionality (web vitals tests dropped as no direct Playwright equivalent)tests/ssr-search-parameter-manager.spec.ts— URL parameter management, back navigation, SSR with initial params, invalid params handlingDOMParser(not available in Node.js).gitignorewith Playwright-specific entries