From 27f8369f0c96f0afc2249add859a4e38f2119431 Mon Sep 17 00:00:00 2001 From: Cesar Varela Date: Mon, 16 Dec 2024 23:07:48 -0300 Subject: [PATCH] Update tests --- site/gatsby-site/playwright/e2e-full/login.spec.ts | 4 ++-- site/gatsby-site/playwright/e2e-full/rollbar.spec.ts | 2 +- site/gatsby-site/playwright/e2e-full/signup.spec.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/site/gatsby-site/playwright/e2e-full/login.spec.ts b/site/gatsby-site/playwright/e2e-full/login.spec.ts index 38ad3bb049..9c93aa5596 100644 --- a/site/gatsby-site/playwright/e2e-full/login.spec.ts +++ b/site/gatsby-site/playwright/e2e-full/login.spec.ts @@ -31,7 +31,7 @@ test.describe('Login', () => { const email = 'test.user@incidentdatabase.ai'; - await page.route('**/api/auth/signin/http-email', async (route) => { + await page.route('**/api/auth/signin/http-email*', async (route) => { const formData = new URLSearchParams(await route.request().postData()); @@ -54,7 +54,7 @@ test.describe('Login', () => { await expect(page.locator('[data-cy="login-btn"]')).toBeEnabled({ timeout: 1000 }); }).toPass(); - const signupResponse = page.waitForResponse('**/api/auth/signin/http-email'); + const signupResponse = page.waitForResponse('**/api/auth/signin/http-email*'); await page.locator('[data-cy="login-btn"]').click(); diff --git a/site/gatsby-site/playwright/e2e-full/rollbar.spec.ts b/site/gatsby-site/playwright/e2e-full/rollbar.spec.ts index 8fb3d5bb6d..0f401f5fba 100644 --- a/site/gatsby-site/playwright/e2e-full/rollbar.spec.ts +++ b/site/gatsby-site/playwright/e2e-full/rollbar.spec.ts @@ -17,7 +17,7 @@ test.describe('Rollbar', () => { }); }); - await page.route('**/api/auth/signin/http-email', async (route) => { + await page.route('**/api/auth/signin/http-email*', async (route) => { await route.fulfill({ status: 200, body: JSON.stringify({ diff --git a/site/gatsby-site/playwright/e2e-full/signup.spec.ts b/site/gatsby-site/playwright/e2e-full/signup.spec.ts index 83860dfc03..759fa75fb4 100644 --- a/site/gatsby-site/playwright/e2e-full/signup.spec.ts +++ b/site/gatsby-site/playwright/e2e-full/signup.spec.ts @@ -13,7 +13,7 @@ test.describe('Signup', () => { const email = 'new.user@test.com'; - await page.route('**/api/auth/signin/http-email', async (route) => { + await page.route('**/api/auth/signin/http-email*', async (route) => { const formData = new URLSearchParams(await route.request().postData() || ''); expect(formData.get('email')).toBe(email); @@ -33,7 +33,7 @@ test.describe('Signup', () => { await page.locator('input[name=email]').fill(email); - const signupResponse = page.waitForResponse('**/api/auth/signin/http-email'); + const signupResponse = page.waitForResponse('**/api/auth/signin/http-email*'); await page.locator('[data-cy="signup-btn"]').click();