diff --git a/integration-tests/tests/fixtures/auth.fixture.ts b/integration-tests/tests/fixtures/auth.fixture.ts index f86d76d56..52e622799 100644 --- a/integration-tests/tests/fixtures/auth.fixture.ts +++ b/integration-tests/tests/fixtures/auth.fixture.ts @@ -4,12 +4,12 @@ import { AuthPage } from '../pages/auth.page'; import { TestAccount } from '../types/auth.types'; type TestFixtures = { - authenticatedPage: Page; + pageWithACreatedUser: Page; testAccount: TestAccount; }; export const test = base.extend({ - authenticatedPage: async ({ page }, use) => { + pageWithACreatedUser: async ({ page }, use) => { const authPage = new AuthPage(page); const testAccount = { diff --git a/integration-tests/tests/fixtures/group.fixture.ts b/integration-tests/tests/fixtures/group.fixture.ts index c15c15751..b3c3a36ee 100644 --- a/integration-tests/tests/fixtures/group.fixture.ts +++ b/integration-tests/tests/fixtures/group.fixture.ts @@ -15,8 +15,8 @@ type GroupFixtures = { }; export const test = authTest.extend({ - pageWithGroup: async ({ authenticatedPage }, use) => { - const groupPage = new GroupPage(authenticatedPage); + pageWithGroup: async ({ pageWithACreatedUser }, use) => { + const groupPage = new GroupPage(pageWithACreatedUser); const testGroup = { name: `test_group_${uuidv4().slice(0, 8)}`, @@ -31,7 +31,7 @@ export const test = authTest.extend({ await groupPage.navigateToCreateGroupPage(); await groupPage.createGroup(testGroup); - await use(authenticatedPage); + await use(pageWithACreatedUser); // Cleanup would go here if needed }, diff --git a/integration-tests/tests/specs/features/authenticated.spec.ts b/integration-tests/tests/specs/features/authenticated.spec.ts index fad7657d1..ed8662520 100644 --- a/integration-tests/tests/specs/features/authenticated.spec.ts +++ b/integration-tests/tests/specs/features/authenticated.spec.ts @@ -2,7 +2,7 @@ import { expect } from '@playwright/test'; import { test } from '../../fixtures/auth.fixture'; test.describe('Basic test of authenticated fixture', () => { - test('authenticated fixture runs', async ({ authenticatedPage }) => { + test('authenticated fixture runs', async ({ pageWithACreatedUser }) => { }); }); diff --git a/integration-tests/tests/specs/group/creategroup.spec.ts b/integration-tests/tests/specs/group/creategroup.spec.ts index 523489fec..ffb8cb50f 100644 --- a/integration-tests/tests/specs/group/creategroup.spec.ts +++ b/integration-tests/tests/specs/group/creategroup.spec.ts @@ -3,8 +3,8 @@ import { test } from '../../fixtures/auth.fixture'; import { GroupPage } from '../../pages/group.page'; test.describe('Group creation', () => { - test('can create group', async ({ authenticatedPage }) => { - const groupPage = new GroupPage(authenticatedPage); + test('can create group', async ({ pageWithACreatedUser }) => { + const groupPage = new GroupPage(pageWithACreatedUser); // Create a new group