replace Spectron by Playwright

This commit is contained in:
Maxime GRIS
2021-11-13 19:55:50 +01:00
parent 6463897e8f
commit 558c646e2f
15 changed files with 1479 additions and 1386 deletions

19
e2e/playwright.config.ts Normal file
View File

@@ -0,0 +1,19 @@
/** @type {import('@playwright/test').PlaywrightTestConfig} */
const config = {
testDir: '.',
timeout: 45000,
outputDir: './screenshots',
use: {
headless: false,
viewport: { width: 1280, height: 720 },
launchOptions: {
slowMo: 1000,
},
trace: 'on',
},
expect: {
toMatchSnapshot: { threshold: 0.2 },
},
};
module.exports = config;