Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 7953ce0

Browse files
committed
Clean util file
1 parent 0309486 commit 7953ce0

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

playwright/e2e/release-announcement/index.ts

+3-13
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,9 @@
1919
import { Page } from "@playwright/test";
2020

2121
import { test as base, expect } from "../../element-web-test";
22-
import { ElementAppPage } from "../../pages/ElementAppPage";
23-
import { Bot } from "../../pages/bot";
2422

2523
/**
26-
* Set up for a read receipt test:
27-
* - Create a user with the supplied name
28-
* - As that user, create two rooms with the supplied names
29-
* - Create a bot with the supplied name
30-
* - Invite the bot to both rooms and ensure that it has joined
24+
* Set up for release announcement tests.
3125
*/
3226
export const test = base.extend<{
3327
util: Helpers;
@@ -36,16 +30,12 @@ export const test = base.extend<{
3630
botCreateOpts: { displayName: "Other User" },
3731

3832
util: async ({ page, app, bot }, use) => {
39-
await use(new Helpers(page, app, bot));
33+
await use(new Helpers(page));
4034
},
4135
});
4236

4337
export class Helpers {
44-
constructor(
45-
private page: Page,
46-
private app: ElementAppPage,
47-
private bot: Bot,
48-
) {}
38+
constructor(private page: Page) {}
4939

5040
/**
5141
* Get the release announcement with the given name.

0 commit comments

Comments
 (0)