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
63 changes: 48 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"husky": "^8.0.3",
"jest": "^29.7.0",
"prettier": "3.0.3",
"pw-api-plugin": "^1.0.2",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
},
Expand Down
21 changes: 21 additions & 0 deletions tests/room/room.get.pw-plugin.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { test, expect } from "@playwright/test";

Check failure on line 1 in tests/room/room.get.pw-plugin.spec.ts

View workflow job for this annotation

GitHub Actions / playwright-automation-checks

[api-checks] β€Ί tests/room/room.get.pw-plugin.spec.ts:5:7 β€Ί room/ GET requests with pw-plugin β€Ί GET all rooms

1) [api-checks] β€Ί tests/room/room.get.pw-plugin.spec.ts:5:7 β€Ί room/ GET requests with pw-plugin β€Ί GET all rooms Error: browserType.launch: Executable doesn't exist at /home/runner/.cache/ms-playwright/chromium_headless_shell-1155/chrome-linux/headless_shell ╔═════════════════════════════════════════════════════════════════════════╗ β•‘ Looks like Playwright Test or Playwright was just installed or updated. β•‘ β•‘ Please run the following command to download new browsers: β•‘ β•‘ β•‘ β•‘ npx playwright install β•‘ β•‘ β•‘ β•‘ <3 Playwright Team β•‘ β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

Check failure on line 1 in tests/room/room.get.pw-plugin.spec.ts

View workflow job for this annotation

GitHub Actions / playwright-automation-checks

[api-checks] β€Ί tests/room/room.get.pw-plugin.spec.ts:5:7 β€Ί room/ GET requests with pw-plugin β€Ί GET all rooms

1) [api-checks] β€Ί tests/room/room.get.pw-plugin.spec.ts:5:7 β€Ί room/ GET requests with pw-plugin β€Ί GET all rooms Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: browserType.launch: Executable doesn't exist at /home/runner/.cache/ms-playwright/chromium_headless_shell-1155/chrome-linux/headless_shell ╔═════════════════════════════════════════════════════════════════════════╗ β•‘ Looks like Playwright Test or Playwright was just installed or updated. β•‘ β•‘ Please run the following command to download new browsers: β•‘ β•‘ β•‘ β•‘ npx playwright install β•‘ β•‘ β•‘ β•‘ <3 Playwright Team β•‘ β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

Check failure on line 1 in tests/room/room.get.pw-plugin.spec.ts

View workflow job for this annotation

GitHub Actions / playwright-automation-checks

[api-checks] β€Ί tests/room/room.get.pw-plugin.spec.ts:5:7 β€Ί room/ GET requests with pw-plugin β€Ί GET all rooms

1) [api-checks] β€Ί tests/room/room.get.pw-plugin.spec.ts:5:7 β€Ί room/ GET requests with pw-plugin β€Ί GET all rooms Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: browserType.launch: Executable doesn't exist at /home/runner/.cache/ms-playwright/chromium_headless_shell-1155/chrome-linux/headless_shell ╔═════════════════════════════════════════════════════════════════════════╗ β•‘ Looks like Playwright Test or Playwright was just installed or updated. β•‘ β•‘ Please run the following command to download new browsers: β•‘ β•‘ β•‘ β•‘ npx playwright install β•‘ β•‘ β•‘ β•‘ <3 Playwright Team β•‘ β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

Check failure on line 1 in tests/room/room.get.pw-plugin.spec.ts

View workflow job for this annotation

GitHub Actions / playwright-automation-checks

[api-checks] β€Ί tests/room/room.get.pw-plugin.spec.ts:5:7 β€Ί room/ GET requests with pw-plugin β€Ί GET all rooms

1) [api-checks] β€Ί tests/room/room.get.pw-plugin.spec.ts:5:7 β€Ί room/ GET requests with pw-plugin β€Ί GET all rooms Error: browserType.launch: Executable doesn't exist at /home/runner/.cache/ms-playwright/chromium_headless_shell-1155/chrome-linux/headless_shell ╔═════════════════════════════════════════════════════════════════════════╗ β•‘ Looks like Playwright Test or Playwright was just installed or updated. β•‘ β•‘ Please run the following command to download new browsers: β•‘ β•‘ β•‘ β•‘ npx playwright install β•‘ β•‘ β•‘ β•‘ <3 Playwright Team β•‘ β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

Check failure on line 1 in tests/room/room.get.pw-plugin.spec.ts

View workflow job for this annotation

GitHub Actions / playwright-automation-checks

[api-checks] β€Ί tests/room/room.get.pw-plugin.spec.ts:5:7 β€Ί room/ GET requests with pw-plugin β€Ί GET all rooms

1) [api-checks] β€Ί tests/room/room.get.pw-plugin.spec.ts:5:7 β€Ί room/ GET requests with pw-plugin β€Ί GET all rooms Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: browserType.launch: Executable doesn't exist at /home/runner/.cache/ms-playwright/chromium_headless_shell-1155/chrome-linux/headless_shell ╔═════════════════════════════════════════════════════════════════════════╗ β•‘ Looks like Playwright Test or Playwright was just installed or updated. β•‘ β•‘ Please run the following command to download new browsers: β•‘ β•‘ β•‘ β•‘ npx playwright install β•‘ β•‘ β•‘ β•‘ <3 Playwright Team β•‘ β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

Check failure on line 1 in tests/room/room.get.pw-plugin.spec.ts

View workflow job for this annotation

GitHub Actions / playwright-automation-checks

[api-checks] β€Ί tests/room/room.get.pw-plugin.spec.ts:5:7 β€Ί room/ GET requests with pw-plugin β€Ί GET all rooms

1) [api-checks] β€Ί tests/room/room.get.pw-plugin.spec.ts:5:7 β€Ί room/ GET requests with pw-plugin β€Ί GET all rooms Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: browserType.launch: Executable doesn't exist at /home/runner/.cache/ms-playwright/chromium_headless_shell-1155/chrome-linux/headless_shell ╔═════════════════════════════════════════════════════════════════════════╗ β•‘ Looks like Playwright Test or Playwright was just installed or updated. β•‘ β•‘ Please run the following command to download new browsers: β•‘ β•‘ β•‘ β•‘ npx playwright install β•‘ β•‘ β•‘ β•‘ <3 Playwright Team β•‘ β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
import { apiGet } from "pw-api-plugin";

test.describe("room/ GET requests with pw-plugin", () => {
test("GET all rooms", async ({ request, page }, testInfo) => {
testInfo.annotations.push({
type: "implementation",
description: "https://www.npmjs.com/package/pw-api-plugin",
});

const responseGet = await apiGet({ request, page }, `https://automationintesting.online/room/`);

expect(responseGet.status()).toBe(200);
const responseBodyGet = await responseGet.json();
const firstRoom = responseBodyGet.rooms[0];
expect(firstRoom.roomid).toBe(1);
expect(firstRoom.roomName).toBe("101");
expect(firstRoom.type).toBe("single");
expect(firstRoom.image).toBe("/images/room2.jpg");
});
});
Loading