diff --git a/basic/0-failing.spec.ts b/basic/0-failing.spec.ts index 118d38c..4ac2c54 100644 --- a/basic/0-failing.spec.ts +++ b/basic/0-failing.spec.ts @@ -1,14 +1,17 @@ -import { expect } from "@playwright/test"; -import { test } from "./base.ts"; +import { expect, test } from "@playwright/test"; -test("basic test @basic", async ({ page }) => { - await page.goto("https://demo.playwright.dev/todomvc"); +test("basic test @basic", { + annotation: { + type: 'notify:slack', description: `user:U07RSHQKGUX`, + }, +}, async ({ page }) => { + await page.goto("https://todomvc.com/examples/backbone/dist/"); // Use locators to represent a selector and re-use them const inputBox = page.locator("input.new-todo"); const todoList = page.locator(".todo-list"); - await inputBox.fill("Learn JavaScript"); + await inputBox.fill("Stop using Cypress"); await inputBox.press("Enter"); await expect(todoList).toHaveText("Learn Playwright"); }); diff --git a/basic/5-flaky.spec.ts b/basic/5-flaky.spec.ts index b1f7f5e..47566b1 100644 --- a/basic/5-flaky.spec.ts +++ b/basic/5-flaky.spec.ts @@ -6,6 +6,8 @@ import { test } from "./base.ts"; * specific HTTP response. This response contains a JSON body where we assert * some properties. */ + + test("flaky @tagC", async ({ page }, testInfo) => { await page.goto("/network.html"); const [response] = await Promise.all([ diff --git a/basic/test b/basic/test new file mode 100644 index 0000000..e69de29