mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
home tests
This commit is contained in:
parent
6182d84d57
commit
bc593b18e0
@ -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"
|
||||
|
@ -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.
|
||||
|
@ -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./);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user