From 00644491522151c23005d757d40ca793196c817f Mon Sep 17 00:00:00 2001 From: Felix Perron-Brault Date: Thu, 19 Sep 2024 16:29:22 -0400 Subject: [PATCH] fix smoke tests --- packages/samples/headless-ssr/cypress/e2e/smoke.cy.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/samples/headless-ssr/cypress/e2e/smoke.cy.ts b/packages/samples/headless-ssr/cypress/e2e/smoke.cy.ts index 426c3326a66..69ca2956ad3 100644 --- a/packages/samples/headless-ssr/cypress/e2e/smoke.cy.ts +++ b/packages/samples/headless-ssr/cypress/e2e/smoke.cy.ts @@ -12,7 +12,7 @@ const msgSelector = '#hydrated-msg'; const timestampSelector = '#timestamp'; const resultListSelector = '.result-list li'; const searchBoxSelector = '.search-box input'; -const routes = ['generic', 'react'] as const; +const routes = ['generic?tab=all', 'react?tab=all'] as const; const isPageDev = process.env.NODE_ENV === 'development' && @@ -20,7 +20,7 @@ const isPageDev = // 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: { + 'generic?tab=all': { thresholds: { fcp: isPageDev ? 2000 : 200, lcp: isPageDev ? 2000 : 200, @@ -30,7 +30,7 @@ const vitals: Record<(typeof routes)[number], Cypress.ReportWebVitalsConfig> = { inp: 400, }, }, - react: { + 'react?tab=all': { thresholds: { fcp: isPageDev ? 2000 : 400, lcp: isPageDev ? 2000 : 400,