Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarvarela committed Dec 17, 2024
1 parent 3060987 commit 27f8369
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions site/gatsby-site/playwright/e2e-full/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ test.describe('Login', () => {

const email = '[email protected]';

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

Expand All @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion site/gatsby-site/playwright/e2e-full/rollbar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
4 changes: 2 additions & 2 deletions site/gatsby-site/playwright/e2e-full/signup.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test.describe('Signup', () => {

const email = '[email protected]';

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);
Expand All @@ -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();

Expand Down

0 comments on commit 27f8369

Please sign in to comment.