Skip to content

Commit b01fa6d

Browse files
committed
refactor: delete withConnectedUser page plugin
1 parent 68d81eb commit b01fa6d

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

apps/webapp/test/e2e_tests/test.fixtures.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {test as baseTest, type BrowserContext, type Page} from '@playwright/test
2222
import {ApiManagerE2E} from './backend/apiManager.e2e';
2323
import {getUser, User} from './data/user';
2424
import {PageManager} from './pageManager';
25-
import {connectWithUser} from './utils/userActions';
2625
import {mockAudioAndVideoDevices} from './utils/mockVideoDevice.util';
2726
import {Role} from '@wireapp/api-client/lib/team';
2827
import {FEATURE_KEY} from '@wireapp/api-client/lib/team/feature';
@@ -231,17 +230,6 @@ export const withLogin =
231230
.sidebar.waitFor({state: 'visible', timeout: LOGIN_TIMEOUT});
232231
};
233232

234-
/**
235-
* PagePlugin to connect with the given user
236-
* Note: This plugin only works if the users are in the same team
237-
*/
238-
export const withConnectedUser =
239-
(user: User | Promise<User>): PagePlugin =>
240-
async page => {
241-
const pageManager = PageManager.from(page);
242-
await connectWithUser(pageManager, await user);
243-
};
244-
245233
/** PagePlugin to open a guest user link and join the group chat as temporary member */
246234
export const withGuestUser =
247235
(link: string, guestName: string): PagePlugin =>

0 commit comments

Comments
 (0)