Enhance E2E Tests and Configuration (#358)
* Enhance E2E Tests and Configuration - Updated `.gitignore` to exclude `.auth/` directory for cleaner test environment. - Added `test:fast` script in `package.json` for faster Playwright test execution. - Configured Playwright to include a setup project for initializing tests. - Introduced `AUTH_STATES` utility for managing authentication states in tests. - Created `auth.setup.ts` for user authentication tests, ensuring proper login flows. - Refactored various test files to utilize the new authentication state management, improving test reliability and maintainability. - Adjusted team and user billing tests to streamline setup and enhance clarity. - Refactored some dialogs
This commit is contained in:
committed by
GitHub
parent
f157cc7f3e
commit
02e2502dcc
@@ -1,13 +1,11 @@
|
||||
import { Page, expect, test } from '@playwright/test';
|
||||
import { expect, test } from '@playwright/test';
|
||||
|
||||
import { InvitationsPageObject } from './invitations.po';
|
||||
|
||||
test.describe('Invitations', () => {
|
||||
let page: Page;
|
||||
let invitations: InvitationsPageObject;
|
||||
|
||||
test.beforeAll(async ({ browser }) => {
|
||||
page = await browser.newPage();
|
||||
test.beforeEach(async ({ page }) => {
|
||||
invitations = new InvitationsPageObject(page);
|
||||
|
||||
await invitations.setup();
|
||||
@@ -88,17 +86,12 @@ test.describe('Invitations', () => {
|
||||
});
|
||||
|
||||
test.describe('Full Invitation Flow', () => {
|
||||
let page: Page;
|
||||
let invitations: InvitationsPageObject;
|
||||
|
||||
test.beforeAll(async ({ browser }) => {
|
||||
page = await browser.newPage();
|
||||
invitations = new InvitationsPageObject(page);
|
||||
|
||||
test('should invite users and let users accept an invite', async ({
|
||||
page,
|
||||
}) => {
|
||||
const invitations = new InvitationsPageObject(page);
|
||||
await invitations.setup();
|
||||
});
|
||||
|
||||
test('should invite users and let users accept an invite', async () => {
|
||||
await invitations.navigateToMembers();
|
||||
|
||||
const invites = [
|
||||
|
||||
Reference in New Issue
Block a user