-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwatcher.before.spec.ts
More file actions
41 lines (39 loc) · 1.14 KB
/
watcher.before.spec.ts
File metadata and controls
41 lines (39 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { cli, test } from "./utils";
import { expect } from "@playwright/test";
test.describe(
"examples/watch/watch-before.yml",
{
annotation: {
type: cli({
args: "-i examples/watch/watch-before.yml".split(" "),
}),
description: "",
},
},
() => {
test("running before", async ({ page, bs, request }) => {
await page.goto(bs.named("watch-before-tasks", "/"), {
waitUntil: "networkidle",
});
const lines = await bs.outputLines(4);
expect(lines).toStrictEqual([
{
line: "watchers.before.before",
prefix: "kBgX3v.0.817cQQ",
},
{
line: "watchers.before.after",
prefix: "kBgX3v.1.rlqY1s",
},
{
line: "Start A",
prefix: "kBgX3v.2.FLTr2X",
},
{
line: "End A",
prefix: "kBgX3v.3.pnDswR",
},
]);
});
},
);