Skip to content

Commit c77d8c3

Browse files
committed
test: fix E2E tests
The `unencrypted-group-tests.spec.ts` was not properly rebased in one of the recent MRs.
1 parent 6ceaeaf commit c77d8c3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/e2e-tests/tests/chat-list-multiselect.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const expectSelectedChats = async (chatNums: number[]) => {
3333
test.beforeAll(async ({ browser }) => {
3434
const contextForProfileCreation = await browser.newContext()
3535
const pageForProfileCreation = await contextForProfileCreation.newPage()
36-
const pageForTestsP = browser.newPage()
3736

3837
await reloadPage(pageForProfileCreation)
3938

@@ -44,12 +43,11 @@ test.beforeAll(async ({ browser }) => {
4443
numberOfProfiles,
4544
existingProfiles,
4645
pageForProfileCreation,
47-
contextForProfileCreation,
4846
browser.browserType().name()
4947
)
5048

5149
await contextForProfileCreation.close()
52-
page = await pageForTestsP
50+
page = await browser.newPage()
5351
await reloadPage(page)
5452

5553
chatList = page.getByRole('tablist', { name: 'Chats' })
@@ -60,7 +58,7 @@ test.beforeAll(async ({ browser }) => {
6058
})
6159

6260
test.afterAll(async ({ browser }) => {
63-
await page.close()
61+
await page?.close()
6462

6563
const context = await browser.newContext()
6664
const pageForProfileDeletion = await context.newPage()

0 commit comments

Comments
 (0)