-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwatcher.fail.spec.ts
More file actions
37 lines (36 loc) · 1.01 KB
/
watcher.fail.spec.ts
File metadata and controls
37 lines (36 loc) · 1.01 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
import { cli, test } from "./utils";
import { expect } from "@playwright/test";
test.describe(
"examples/watch/watch-fail.yml",
{
annotation: {
type: cli({
args: "-i examples/watch/watch-fail.yml".split(" "),
}),
description: "",
},
},
() => {
test("ignoring failures in a task sequence", async ({
page,
bs,
request,
}) => {
await page.goto(bs.named("watch-ignore-failures", "/"), {
waitUntil: "networkidle",
});
bs.touch("examples/watch/src/index.html");
const lines = await bs.outputLines(2);
expect(lines).toStrictEqual([
{
line: "start.a",
prefix: "yoFlWY.0.gZgvRT.0.26VhXf",
},
{
line: "start.b",
prefix: "yoFlWY.0.gZgvRT.1.NpJdaO",
},
]);
});
},
);