Skip to content

Commit

Permalink
Update test to handle new param
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarvarela committed Dec 17, 2024
1 parent 5e16d93 commit 3060987
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions site/gatsby-site/playwright/e2e-full/signup.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -62,11 +62,9 @@ test.describe('Signup', () => {
});
});

await page.locator('[data-cy="signup-btn"]').click();

await page.locator('input[name=email]').fill('[email protected]');

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();

Expand Down

0 comments on commit 3060987

Please sign in to comment.