opsdash-app/opsdash/playwright.config.ts
blade34242 110dc428ee
Some checks failed
Nextcloud Server Tests / version-consistency (push) Successful in 26s
Nextcloud Server Tests / matrix-config (push) Successful in 28s
Nextcloud Server Tests / Nextcloud stable30 / PHP 8.2 (stable30, 8.2) (push) Successful in 4m10s
Nextcloud Server Tests / Nextcloud stable31 / PHP 8.2 (stable31, 8.2) (push) Successful in 4m31s
Nextcloud Server Tests / Nextcloud stable31 / PHP 8.3 (stable31, 8.3) (push) Successful in 4m29s
Nextcloud Server Tests / Nextcloud stable32 / PHP 8.2 (stable32, 8.2) (push) Successful in 4m26s
Nextcloud Server Tests / Nextcloud stable32 / PHP 8.3 (stable32, 8.3) (push) Has been cancelled
Nextcloud Server Tests / Nextcloud stable33 / PHP 8.2 (stable33, 8.2) (push) Has been cancelled
Nextcloud Server Tests / Nextcloud stable33 / PHP 8.3 (stable33, 8.3) (push) Has been cancelled
feat: add nextcloud 33 support
2026-04-23 16:05:44 +07:00

25 lines
794 B
TypeScript

import { defineConfig } from '@playwright/test'
const baseUrl = process.env.PLAYWRIGHT_BASE_URL ?? 'http://localhost:8093'
const username = process.env.PLAYWRIGHT_USER ?? 'admin'
const password = process.env.PLAYWRIGHT_PASS ?? 'admin'
export default defineConfig({
testDir: './tests/e2e',
use: {
baseURL: baseUrl,
launchOptions: {
args: ['--no-sandbox', '--disable-setuid-sandbox'],
chromiumSandbox: false,
},
extraHTTPHeaders: {
Authorization: 'Basic ' + Buffer.from(`${username}:${password}`).toString('base64'),
'OCS-APIREQUEST': 'true',
},
video: 'off',
screenshot: 'only-on-failure',
trace: 'retain-on-failure',
},
timeout: 120000,
reporter: [['list'], ['html', { outputFolder: 'playwright-report', open: 'never' }]],
})