Skip to content

Commit 38963dd

Browse files
committed
chore: Add more rule details
1 parent ef6cfbc commit 38963dd

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

basic/8-rules.spec.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ import { test } from "./base.ts";
55
* All tests in this file are matched with a Currents Quarantine Rule based on filename.
66
* See the `rules` fixture in `base.ts` to see how the rules fixtures were configured,
77
* and the docs for more information on how to configure rules: https://docs.currents.dev/guides/automation-rules
8+
*
89
*/
910

1011
/**
1112
* This is a failing test that will be quarantined by the file based rule
13+
*
14+
* | field | operation | value | - | action |
15+
* | ----- | --------- | --------------- | --- | ---------- |
16+
* | File | is | 8-rules.spec.ts | -> | Quarantine |
1217
*/
1318
test("rules quarantine test", async ({ page }) => {
1419
await page.goto("https://demo.playwright.dev/todomvc");
@@ -24,6 +29,11 @@ test("rules quarantine test", async ({ page }) => {
2429

2530
/**
2631
* This tests will be completely skipped by a rule that matches fileName + test name
32+
*
33+
* | field | operation | value | - | action |
34+
* | ----- | --------- | --------------- | ---- | ---------- |
35+
* | File | is | 8-rules.spec.ts | And | |
36+
* | Title | is | rules skip test | -> | Skip |
2737
*/
2838
test("rules skip test", async ({ page }) => {
2939
await page.goto("https://demo.playwright.dev/todomvc");
@@ -34,5 +44,5 @@ test("rules skip test", async ({ page }) => {
3444

3545
await inputBox.fill("Learn JavaScript");
3646
await inputBox.press("Enter");
37-
await expect(todoList).toHaveText("Learn Playwright");
47+
await expect(todoList).toHaveText("Learn JavaScript");
3848
});

0 commit comments

Comments
 (0)