Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/meteor/tests/e2e/e2e-encryption/e2ee-key-reset.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Page } from '@playwright/test';

import { createAuxContext } from '../fixtures/createAuxContext';
import injectInitialData from '../fixtures/inject-initial-data';
import { Users } from '../fixtures/userStates';
import { AccountProfile } from '../page-objects';
import { preserveSettings } from '../utils/preserveSettings';
Expand Down Expand Up @@ -35,6 +36,7 @@ test.describe('E2EE Key Reset', () => {

test.afterEach(async () => {
await anotherClientPage.close();
await injectInitialData();
});

test('expect force logout on e2e keys reset', async ({ page }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { faker } from '@faker-js/faker';
import type { APIRequestContext } from '@playwright/test';

import { BASE_API_URL } from '../config/constants';
import injectInitialData from '../fixtures/inject-initial-data';
import { Users, restoreState } from '../fixtures/userStates';
import { Users } from '../fixtures/userStates';
import { HomeChannel } from '../page-objects';
import { preserveSettings } from '../utils/preserveSettings';
import { test, expect } from '../utils/test';
Expand Down Expand Up @@ -54,9 +53,6 @@ test.describe('E2EE Legacy Format', () => {
test('legacy expect create a private channel encrypted and send an encrypted message', async ({ page, request }) => {
const channelName = faker.string.uuid();

await injectInitialData();
await restoreState(page, Users.userE2EE, { except: ['private_key', 'public_key', 'e2e.randomPassword'] });

await poHomeChannel.sidenav.createEncryptedChannel(channelName);

await expect(page).toHaveURL(`/group/${channelName}`);
Expand Down
Loading