From 3060987264c0d2a074c8f2b1ba934fc2ff4a0af6 Mon Sep 17 00:00:00 2001 From: Cesar Varela Date: Mon, 16 Dec 2024 22:36:00 -0300 Subject: [PATCH] Update test to handle new param --- site/gatsby-site/playwright/e2e-full/signup.spec.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/site/gatsby-site/playwright/e2e-full/signup.spec.ts b/site/gatsby-site/playwright/e2e-full/signup.spec.ts index a7e180059e..83860dfc03 100644 --- a/site/gatsby-site/playwright/e2e-full/signup.spec.ts +++ b/site/gatsby-site/playwright/e2e-full/signup.spec.ts @@ -45,7 +45,7 @@ test.describe('Signup', () => { test('Should display the error toast message if any other sign up error occurs', async ({ page }) => { await page.goto(url); - 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, @@ -62,11 +62,9 @@ test.describe('Signup', () => { }); }); - await page.locator('[data-cy="signup-btn"]').click(); - await page.locator('input[name=email]').fill('test@test.com'); - 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();