Skip to content

Commit ede0470

Browse files
committed
fix: feedbacks
1 parent c389f52 commit ede0470

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

e2e/users.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import { expect, test } from 'e2e/utils';
2+
import { ADMIN_FILE, USER_FILE } from 'e2e/utils/constants';
23
import { randomString } from 'remeda';
34

45
test.describe('User management as user', () => {
5-
test.use({ storageState: 'e2e/.auth/user.json' });
6+
test.use({ storageState: USER_FILE });
7+
68
test('Should not have access', async ({ page }) => {
79
await page.to('/manager/users');
810

@@ -13,9 +15,7 @@ test.describe('User management as user', () => {
1315
});
1416

1517
test.describe('User management as manager', () => {
16-
test.use({
17-
storageState: 'e2e/.auth/admin.json',
18-
});
18+
test.use({ storageState: ADMIN_FILE });
1919

2020
test.beforeEach(async ({ page }) => {
2121
await page.to('/manager/users');

e2e/utils/page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ export const pageWithUtils: CustomFixture<Page & PageUtils> = async (
6262

6363
page.to = page.goto;
6464

65-
apply(page);
65+
await apply(page);
6666
};

0 commit comments

Comments
 (0)