diff --git a/.github/workflows/prbot.yml b/.github/workflows/prbot.yml index e9e4c50af60..8ed227f1b5a 100644 --- a/.github/workflows/prbot.yml +++ b/.github/workflows/prbot.yml @@ -571,6 +571,10 @@ jobs: - 'e2e-atomic-vuejs-test' - 'e2e-atomic-stencil-test' - 'e2e-atomic-insight-panel-test' + - 'e2e-headless-ssr-test-app-dev' + - 'e2e-headless-ssr-test-app-prod' + - 'e2e-headless-ssr-test-pages-dev' + - 'e2e-headless-ssr-test-pages-prod' runs-on: ubuntu-latest steps: - name: Harden Runner diff --git a/packages/samples/headless-ssr/cypress/e2e/smoke.cy.ts b/packages/samples/headless-ssr/cypress/e2e/smoke.cy.ts index 69ca2956ad3..ac2022989ed 100644 --- a/packages/samples/headless-ssr/cypress/e2e/smoke.cy.ts +++ b/packages/samples/headless-ssr/cypress/e2e/smoke.cy.ts @@ -14,29 +14,25 @@ const resultListSelector = '.result-list li'; const searchBoxSelector = '.search-box input'; const routes = ['generic?tab=all', 'react?tab=all'] as const; -const isPageDev = - process.env.NODE_ENV === 'development' && - Cypress.env('NEXTJS_ROUTER') === 'pages'; - // Note: Thresholds might need to be adjusted as the page tested changes (e.g. more components are added etc) const vitals: Record<(typeof routes)[number], Cypress.ReportWebVitalsConfig> = { 'generic?tab=all': { thresholds: { - fcp: isPageDev ? 2000 : 200, - lcp: isPageDev ? 2000 : 200, - cls: 0, - ttfb: 60, + lcp: 2500, fid: 400, + cls: 0.1, + fcp: 1800, + ttfb: 600, inp: 400, }, }, 'react?tab=all': { thresholds: { - fcp: isPageDev ? 2000 : 400, - lcp: isPageDev ? 2000 : 400, - cls: 0, - ttfb: 120, + lcp: 2500, fid: 800, + cls: 0.1, + fcp: 1800, + ttfb: 600, inp: 800, }, },