Skip to content

Commit 9df3233

Browse files
new test
1 parent d1ff212 commit 9df3233

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ node_modules
44
/playwright-report/
55
/blob-report/
66
/playwright/.cache/
7+
/ignoreplz/

__checks__/browser-checks/book-details/book-details.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ test('Book has correct details', async ({ page }) => {
1313
}
1414
await route.fulfill({ json });
1515
});
16-
17-
await page.goto('https://danube-webshop.herokuapp.com/books/23');
16+
await page.goto(process.env.baseUrl + 'books/23');
1817
//Removed for brevity: checks of the book's title, genre, etc.
1918
await expect(page).toHaveScreenshot()
2019
await expect(page.locator('#app-content')).toContainText("Left in stock:");

__checks__/test-2.spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { test, expect } from '@playwright/test';
2+
3+
test('test', async ({ page }) => {
4+
await page.goto('https://developers.checklyhq.com/reference/postv1checksurl');
5+
await page.getByRole('button', { name: ' Ruby' }).click();
6+
await page.getByRole('link', { name: 'Checks Show subpages for' }).click();
7+
await expect(page.getByRole('heading', { name: 'List all checks' })).toBeVisible();
8+
await expect(page.locator('#content-head')).toContainText('List all checks');
9+
});

0 commit comments

Comments
 (0)