🧪 Add checkly

This commit is contained in:
ajnart
2023-05-16 15:25:32 +09:00
parent 1c80e13cf8
commit 7b81a3bc43
5 changed files with 8999 additions and 10696 deletions

View File

@@ -1,11 +1,11 @@
import { test, expect, Page } from '@playwright/test';
import { test, expect } from '@playwright/test'
// You can override the default Playwright test timeout of 30s
// test.setTimeout(60_000);
test('Checkly Homepage', async ({ page }: { page: Page }) => {
const response = await page.goto('https://danube-web.shop');
expect(response?.status()).toBeLessThan(400);
await expect(page).toHaveTitle(/Danube WebShop/);
await page.screenshot({ path: 'homepage.jpg' });
});
test('Checkly Homepage', async ({ page }) => {
const response = await page.goto('https://danube-web.shop')
expect(response?.status()).toBeLessThan(400)
await expect(page).toHaveTitle(/Danube WebShop/)
await page.screenshot({ path: 'homepage.jpg' })
})