Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions basic/0-failing.spec.ts
Original file line number Diff line number Diff line change
@@ -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");
});
2 changes: 2 additions & 0 deletions basic/5-flaky.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down
Empty file added basic/test
Empty file.
Loading