File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11import { expect , test } from 'e2e/utils' ;
2+ import { ADMIN_FILE , USER_FILE } from 'e2e/utils/constants' ;
23import { randomString } from 'remeda' ;
34
45test . 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
1517test . 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' ) ;
Original file line number Diff line number Diff 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} ;
You can’t perform that action at this time.
0 commit comments