Skip to content

Commit 714bc20

Browse files
authored
Remove toasts fixture from playwright-common: use rejectToast etc. directly. (#33520)
1 parent 5156e88 commit 714bc20

3 files changed

Lines changed: 3 additions & 166 deletions

File tree

packages/playwright-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@element-hq/element-web-playwright-common",
33
"type": "module",
4-
"version": "4.1.0",
4+
"version": "5.0.0",
55
"license": "SEE LICENSE IN README.md",
66
"repository": {
77
"type": "git",

packages/playwright-common/src/fixtures/toasts.ts

Lines changed: 0 additions & 163 deletions
This file was deleted.

packages/playwright-common/src/fixtures/user.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import { type Page } from "@playwright/test";
1010
import { sample, uniqueId } from "lodash-es";
1111

1212
// We want to avoid using `mergeTests` in index.ts because it drops useful type
13-
// information about the fixtures. Instead, we add `toasts` into our fixture
13+
// information about the fixtures. Instead, we add `services` into our fixture
1414
// suite by using its `test` as a base, so that there is a linear hierarchy.
15-
import { test as base } from "./toasts.js";
15+
import { test as base } from "./services.js";
1616
import { type Credentials } from "../utils/api.js";
1717

1818
/** Adds an initScript to the given page which will populate localStorage appropriately so that Element will use the given credentials. */

0 commit comments

Comments
 (0)