Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions packages/tests-e2e/src/complete/utils/externalauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,20 @@ export const socialLogin = async (page: Page, gmail: string, password: string, s
await gmailPage.close();

await page.getByRole('button', { name: 'Continue with Google' }).click();
await expect(page.getByRole('heading')).toHaveText('Choose an account');

await page.getByRole('button', { name: 'Corbado Systemtest' }).click();
await expect(page.getByRole('heading')).toHaveText('corbado-staging.io wants to access your Google Account');

await page.getByRole('button', { name: 'Allow' }).click();
// await expect(page.getByRole('heading')).toHaveText('Choose an account');
//
// await page.getByRole('button', { name: 'Corbado Systemtest' }).click();
// await expect(page.getByRole('heading')).toHaveText('corbado-staging.io wants to access your Google Account');
//
// await page.getByRole('button', { name: 'Allow' }).click();
};

export const repeatSocialLogin = async (page: Page) => {
await page.getByRole('button', { name: 'Continue with Google' }).click();
await expect(page.getByRole('heading')).toHaveText('Choose an account');

await page.getByRole('button', { name: 'Corbado Systemtest' }).click();
await expect(page.getByRole('heading')).toHaveText('corbado-staging.io wants to access your Google Account');

await page.getByRole('button', { name: 'Allow' }).click();
// await expect(page.getByRole('heading')).toHaveText('Choose an account');
//
// await page.getByRole('button', { name: 'Corbado Systemtest' }).click();
// await expect(page.getByRole('heading')).toHaveText('corbado-staging.io wants to access your Google Account');
//
// await page.getByRole('button', { name: 'Allow' }).click();
};
2 changes: 1 addition & 1 deletion packages/tests-e2e/src/connect/fixtures/BaseTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { test as base } from '@playwright/test';

import { BaseModel } from '../models/BaseModel';
import { CDPSessionManager } from '../utils/CDPSessionManager';
import { VirtualAuthenticator } from '../utils/VirtualAuthenticator';
import { NetworkRequestBlocker } from '../utils/NetworkRequestBlocker';
import { VirtualAuthenticator } from '../utils/VirtualAuthenticator';

export const test = base.extend<{ model: BaseModel }>({
model: async ({ page }, use) => {
Expand Down
Loading