chore: add mock license server

This commit is contained in:
Ali BARIN
2023-09-29 21:09:06 +03:00
parent 174240a220
commit f79fc29203
5 changed files with 111 additions and 9 deletions

View File

@@ -22,15 +22,16 @@ module.exports = defineConfig({
/* Timeout threshold for each test */
timeout: 30000,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: process.env.CI ? 'github' : 'html',
reporter: process.env.CI
? [['html', { open: 'never' }], ['github']]
: [['html', { open: 'never' }]],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: process.env.BASE_URL
|| 'http://localhost:3001',
baseURL: process.env.BASE_URL || 'http://localhost:3001',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
trace: 'retain-on-failure',
testIdAttribute: 'data-test',
viewport: { width: 1280, height: 720 },
},