corvée(playwright) met à jour la configuration playwright
- créé une tâche justfile pour lancer le mode UI de Playwright.
This commit is contained in:
parent
a109caa5e0
commit
d5da972aec
3 changed files with 10 additions and 21 deletions
|
|
@ -1,33 +1,17 @@
|
|||
import { defineConfig, devices } from "@playwright/test";
|
||||
import { defineConfig, devices, PlaywrightTestConfig } from "@playwright/test";
|
||||
|
||||
export default defineConfig({
|
||||
const playwrightConfig: PlaywrightTestConfig = defineConfig({
|
||||
fullyParallel: true,
|
||||
projects: [
|
||||
{
|
||||
name: "desktop-chromium-1920",
|
||||
use: { ...devices["Desktop Chrome"], viewport: { height: 1080, width: 1920 } },
|
||||
},
|
||||
// {
|
||||
// name: "desktop-chromium-1536",
|
||||
// use: { ...devices["Desktop Chrome"], viewport: { width: 1536, height: 864 } },
|
||||
// },
|
||||
// {
|
||||
// name: "desktop-chromium-1366",
|
||||
// use: { ...devices["Desktop Chrome"], viewport: { width: 1366, height: 768 } },
|
||||
// },
|
||||
{
|
||||
name: "desktop-firefox-1920",
|
||||
use: { ...devices["Desktop Firefox"], viewport: { height: 1080, width: 1920 } },
|
||||
},
|
||||
// {
|
||||
// name: "desktop-firefox-1536",
|
||||
// use: { ...devices["Desktop Firefox"], viewport: { width: 1536, height: 864 } },
|
||||
// },
|
||||
// {
|
||||
// name: "desktop-firefox-1366",
|
||||
// use: { ...devices["Desktop Firefox"], viewport: { width: 1366, height: 768 } },
|
||||
// },
|
||||
// {
|
||||
// name: "tablet-chromium-portrait",
|
||||
// use: { ...devices["Galaxy Tab S9"] },
|
||||
// },
|
||||
|
|
@ -49,7 +33,6 @@ export default defineConfig({
|
|||
testDir: "../tests",
|
||||
timeout: 10_000,
|
||||
use: {
|
||||
/* Base URL to use in actions like `await page.goto('/')`. */
|
||||
baseURL: "https://haikuatelier.gcch.local",
|
||||
clientCertificates: [
|
||||
{
|
||||
|
|
@ -61,5 +44,7 @@ export default defineConfig({
|
|||
ignoreHTTPSErrors: true,
|
||||
trace: "retry-with-trace",
|
||||
},
|
||||
workers: "100%",
|
||||
workers: "50%",
|
||||
});
|
||||
|
||||
export default playwrightConfig;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue