Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit 1aaf640

Browse files
committed
docs check changes
1 parent 46933ba commit 1aaf640

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

__checks__/docs.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { ChecklySitePage } from './poms/ChecklySitePage'
33

44
test('homepage', async ({ page }) => {
55
const checklyPage = new ChecklySitePage(page)
6-
await checklyPage.goto('/docs')
7-
await checklyPage.screenshot('docs')
8-
expect(await page.title()).toEqual('Checkly Documentation - Checkly Docs')
6+
const response = await checklyPage.goto('/docs')
7+
expect(response?.status()).toBe(200)
98
})

__checks__/poms/ChecklySitePage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class ChecklySitePage {
1515
route.abort();
1616
});
1717
await this.page.setViewportSize(defaults.playwright.viewportSize)
18-
await this.page.goto(defaults.baseURL + uri)
18+
return await this.page.goto(defaults.baseURL + uri)
1919
}
2020

2121
async screenshot (name: string) {

0 commit comments

Comments
 (0)