Skip to content

chore: Ynahmany/enable GitHub tests #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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