Skip to content

Commit ef6d6c6

Browse files
committed
🏗️(e2e) cleaning and more consistant naming
Clean up e2e tests by removing unused utils and renaming some files for consistency.
1 parent e79f328 commit ef6d6c6

26 files changed

+245
-406
lines changed

src/frontend/apps/e2e/__tests__/app-impress/auth.setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FullConfig, FullProject, chromium, expect } from '@playwright/test';
22

3-
import { keyCloakSignIn } from './common';
3+
import { keyCloakSignIn } from './utils-common';
44

55
const saveStorageState = async (
66
browserConfig: FullProject<unknown, unknown>,

src/frontend/apps/e2e/__tests__/app-impress/config.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import path from 'path';
22

33
import { expect, test } from '@playwright/test';
44

5-
import { CONFIG, createDoc, overrideConfig } from './common';
5+
import { CONFIG, createDoc, overrideConfig } from './utils-common';
66

77
test.describe('Config', () => {
88
test('it checks that sentry is trying to init from config endpoint', async ({

src/frontend/apps/e2e/__tests__/app-impress/doc-create.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
keyCloakSignIn,
77
randomName,
88
verifyDocName,
9-
} from './common';
9+
} from './utils-common';
1010

1111
test.beforeEach(async ({ page }) => {
1212
await page.goto('/');

src/frontend/apps/e2e/__tests__/app-impress/doc-editor.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
99
mockedDocument,
1010
overrideConfig,
1111
verifyDocName,
12-
} from './common';
13-
import { createRootSubPage } from './sub-pages-utils';
12+
} from './utils-common';
13+
import { createRootSubPage } from './utils-sub-pages';
1414

1515
test.beforeEach(async ({ page }) => {
1616
await page.goto('/');

src/frontend/apps/e2e/__tests__/app-impress/doc-export.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { expect, test } from '@playwright/test';
44
import cs from 'convert-stream';
55
import pdf from 'pdf-parse';
66

7-
import { createDoc, verifyDocName } from './common';
7+
import { createDoc, verifyDocName } from './utils-common';
88

99
test.beforeEach(async ({ page }) => {
1010
await page.goto('/');

src/frontend/apps/e2e/__tests__/app-impress/doc-grid-dnd.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect, test } from '@playwright/test';
22

3-
import { createDoc, mockedListDocs } from './common';
3+
import { createDoc, mockedListDocs } from './utils-common';
44

55
test.describe('Doc grid dnd', () => {
66
test('it creates a doc', async ({ page, browserName }) => {

src/frontend/apps/e2e/__tests__/app-impress/doc-grid.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect, test } from '@playwright/test';
22

3-
import { createDoc, getGridRow } from './common';
3+
import { createDoc, getGridRow } from './utils-common';
44

55
type SmallDoc = {
66
id: string;

src/frontend/apps/e2e/__tests__/app-impress/doc-header.spec.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ import {
44
createDoc,
55
getGridRow,
66
goToGridDoc,
7-
mockedAccesses,
87
mockedDocument,
9-
mockedInvitations,
108
verifyDocName,
11-
} from './common';
12-
import { createRootSubPage } from './sub-pages-utils';
9+
} from './utils-common';
10+
import { mockedAccesses, mockedInvitations } from './utils-share';
11+
import { createRootSubPage } from './utils-sub-pages';
1312

1413
test.beforeEach(async ({ page }) => {
1514
await page.goto('/');

src/frontend/apps/e2e/__tests__/app-impress/doc-inherited-share.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { expect, test } from '@playwright/test';
22

3-
import { createDoc, verifyDocName } from './common';
4-
import { updateShareLink } from './share-utils';
5-
import { createRootSubPage } from './sub-pages-utils';
3+
import { createDoc, verifyDocName } from './utils-common';
4+
import { updateShareLink } from './utils-share';
5+
import { createRootSubPage } from './utils-sub-pages';
66

77
test.describe('Inherited share accesses', () => {
88
test('it checks inherited accesses', async ({ page, browserName }) => {

src/frontend/apps/e2e/__tests__/app-impress/doc-member-create.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {
66
keyCloakSignIn,
77
randomName,
88
verifyDocName,
9-
} from './common';
10-
import { createRootSubPage } from './sub-pages-utils';
9+
} from './utils-common';
10+
import { createRootSubPage } from './utils-sub-pages';
1111

1212
test.describe('Document create member', () => {
1313
test.beforeEach(async ({ page }) => {

0 commit comments

Comments
 (0)