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
10 changes: 7 additions & 3 deletions basic/0-failing.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import { expect } from "@playwright/test";
import { test } from "./base.ts";

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/1-getting-started.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { expect } from "@playwright/test";
import { test } from "./base.ts";



test("basic test @basic", async ({ page }) => {
await page.goto("https://demo.playwright.dev/todomvc");

Expand Down
1 change: 1 addition & 0 deletions basic/2-actions.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { expect } from "@playwright/test";
import { test } from "./base.ts";

console.log("asd");
test.beforeEach(async ({ page }) => {
await page.goto("https://todomvc.com/examples/backbone/dist/");
});
Expand Down
Loading