File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ const expectSelectedChats = async (chatNums: number[]) => {
33
33
test . beforeAll ( async ( { browser } ) => {
34
34
const contextForProfileCreation = await browser . newContext ( )
35
35
const pageForProfileCreation = await contextForProfileCreation . newPage ( )
36
- const pageForTestsP = browser . newPage ( )
37
36
38
37
await reloadPage ( pageForProfileCreation )
39
38
@@ -44,12 +43,11 @@ test.beforeAll(async ({ browser }) => {
44
43
numberOfProfiles ,
45
44
existingProfiles ,
46
45
pageForProfileCreation ,
47
- contextForProfileCreation ,
48
46
browser . browserType ( ) . name ( )
49
47
)
50
48
51
49
await contextForProfileCreation . close ( )
52
- page = await pageForTestsP
50
+ page = await browser . newPage ( )
53
51
await reloadPage ( page )
54
52
55
53
chatList = page . getByRole ( 'tablist' , { name : 'Chats' } )
@@ -60,7 +58,7 @@ test.beforeAll(async ({ browser }) => {
60
58
} )
61
59
62
60
test . afterAll ( async ( { browser } ) => {
63
- await page . close ( )
61
+ await page ? .close ( )
64
62
65
63
const context = await browser . newContext ( )
66
64
const pageForProfileDeletion = await context . newPage ( )
You can’t perform that action at this time.
0 commit comments