home tests

This commit is contained in:
unknown 2023-03-19 18:32:08 +02:00 committed by armel
parent 6182d84d57
commit bc593b18e0
3 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@
"main": "index.js",
"scripts": {
"test": "npx playwright test",
"chromium":"npx playwright test --project chromium --headed",
"show-report":"npx playwright show-report",
"codegen":"npx playwright codegen https://test.oneuptime.com",
"debug": "npx playwright test --debug"

View File

@ -13,7 +13,7 @@ export default defineConfig({
testDir: './tests',
/* Maximum time one test can run for. */
timeout: 30 * 1000,
globalTimeout: 60 * 1000,
globalTimeout: 600 * 1000,
expect: {
/**
* Maximum time expect() should wait for the condition to be met.

View File

@ -4,7 +4,7 @@ import { test, expect } from '@playwright/test';
test.beforeEach(async ({ page }) => {
await page.goto('https://test.oneuptime.com');
});
test.describe('title', () => {
test.describe('check if pages loades with its title', () => {
test('has title', async ({ page }) => {
await expect(page).toHaveTitle(/OneUptime | One Complete SRE and DevOps platform./);
});