Skip to content

Commit

Permalink
chore: increase login timeout for e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreiffers committed Dec 12, 2024
1 parent bb49a74 commit f2ec3b6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions apps/catalog-portal-e2e/src/page-object-model/loginPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class LoginPage {
await this.page.getByLabel('Personidentifikator (syntetisk)').fill(`${process.env.E2E_AUTH_ADMIN_ID}`);
await this.page.getByRole('button', { name: 'Autentiser' }).click();

await expect(this.page.getByRole('heading', { name: 'ØKONOMISK FREIDIG TIGER AS' })).toBeVisible({ timeout: 5000 });
await expect(this.page.getByRole('heading', { name: 'Økonomisk freidig tiger as' })).toBeVisible({ timeout: 30000 });

// End of authentication steps.
await this.page.context().storageState({ path: adminAuthFile });
Expand All @@ -47,7 +47,7 @@ export default class LoginPage {
await this.page.getByLabel('Personidentifikator (syntetisk)').fill(`${process.env.E2E_AUTH_WRITE_ID}`);
await this.page.getByRole('button', { name: 'Autentiser' }).click();

await expect(this.page.getByRole('heading', { name: 'ØKONOMISK FREIDIG TIGER AS' })).toBeVisible({ timeout: 5000 });
await expect(this.page.getByRole('heading', { name: 'Økonomisk freidig tiger as' })).toBeVisible({ timeout: 30000 });

// End of authentication steps.
await this.page.context().storageState({ path: writeAuthFile });
Expand All @@ -65,7 +65,7 @@ export default class LoginPage {
await this.page.getByLabel('Personidentifikator (syntetisk)').fill(`${process.env.E2E_AUTH_READ_ID}`);
await this.page.getByRole('button', { name: 'Autentiser' }).click();

await expect(this.page.getByRole('heading', { name: 'ØKONOMISK FREIDIG TIGER AS' })).toBeVisible({ timeout: 5000 });
await expect(this.page.getByRole('heading', { name: 'Økonomisk freidig tiger as' })).toBeVisible({ timeout: 30000 });

// End of authentication steps.
await this.page.context().storageState({ path: readAuthFile });
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable playwright/no-standalone-expect */
import { runTestAsAdmin, expect } from '../../fixtures/basePage';

const orgId = process.env.E2E_CATALOG_ID;
Expand Down
6 changes: 3 additions & 3 deletions apps/service-catalog-e2e/src/page-object-model/loginPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class LoginPage {
await this.page.getByLabel('Personidentifikator (syntetisk)').fill(`${process.env.E2E_AUTH_ADMIN_ID}`);
await this.page.getByRole('button', { name: 'Autentiser' }).click();

await expect(this.page.getByRole('heading', { name: 'ØKONOMISK FREIDIG TIGER AS' })).toBeVisible({ timeout: 5000 });
await expect(this.page.getByRole('heading', { name: 'Økonomisk freidig tiger as' })).toBeVisible({ timeout: 30000 });

// End of authentication steps.
await this.page.context().storageState({ path: adminAuthFile });
Expand All @@ -46,7 +46,7 @@ export default class LoginPage {
await this.page.getByLabel('Personidentifikator (syntetisk)').fill(`${process.env.E2E_AUTH_WRITE_ID}`);
await this.page.getByRole('button', { name: 'Autentiser' }).click();

await expect(this.page.getByRole('heading', { name: 'ØKONOMISK FREIDIG TIGER AS' })).toBeVisible({ timeout: 5000 });
await expect(this.page.getByRole('heading', { name: 'Økonomisk freidig tiger as' })).toBeVisible({ timeout: 30000 });

// End of authentication steps.
await this.page.context().storageState({ path: writeAuthFile });
Expand All @@ -64,7 +64,7 @@ export default class LoginPage {
await this.page.getByLabel('Personidentifikator (syntetisk)').fill(`${process.env.E2E_AUTH_READ_ID}`);
await this.page.getByRole('button', { name: 'Autentiser' }).click();

await expect(this.page.getByRole('heading', { name: 'ØKONOMISK FREIDIG TIGER AS' })).toBeVisible({ timeout: 5000 });
await expect(this.page.getByRole('heading', { name: 'Økonomisk freidig tiger as' })).toBeVisible({ timeout: 30000 });

// End of authentication steps.
await this.page.context().storageState({ path: readAuthFile });
Expand Down

0 comments on commit f2ec3b6

Please sign in to comment.