rework of the e2e test suites
This commit is contained in:
@@ -1,15 +1,7 @@
|
||||
import { defineConfig, devices } from '@playwright/test';
|
||||
|
||||
/**
|
||||
* Read environment variables from file.
|
||||
* https://playwright.dev/docs/test-configuration#launching-the-player
|
||||
*/
|
||||
function getDisplayValue(value: string | undefined) {
|
||||
return value === undefined ? '1' : value;
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
testDir: './tests/e2e',
|
||||
testDir: './tests/ui',
|
||||
timeout: 90_000,
|
||||
fullyParallel: true,
|
||||
forbidOnly: !!process.env.CI,
|
||||
@@ -23,10 +15,25 @@ export default defineConfig({
|
||||
screenshot: 'only-on-failure',
|
||||
video: 'retain-on-failure',
|
||||
},
|
||||
|
||||
projects: [
|
||||
{
|
||||
name: 'chromium',
|
||||
name: 'purchase',
|
||||
testDir: './tests/ui/purchase',
|
||||
use: { ...devices['Desktop Chrome'] },
|
||||
},
|
||||
{
|
||||
name: 'auth',
|
||||
testDir: './tests/ui/auth',
|
||||
use: { ...devices['Desktop Chrome'] },
|
||||
},
|
||||
{
|
||||
name: 'admin',
|
||||
testDir: './tests/ui/admin',
|
||||
use: { ...devices['Desktop Chrome'] },
|
||||
},
|
||||
{
|
||||
name: 'guest',
|
||||
testDir: './tests/ui/guest',
|
||||
use: { ...devices['Desktop Chrome'] },
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user