insomnia/packages/insomnia-smoke-test/playwright.config.ts
James Gatz 47d2a71279
Add GitHub OAuth for git repos (#4429)
* add sign in with github

* fix authentication url not being reset

* Add error handling for graphql query results

* move desctructuring to function arguments

* remove unused input prop

* Respect INSOMNIA_DATA_PATH for electron data regardless of environment

* fix lint error and update uuid usage

Co-authored-by: David Marby <david@dmarby.se>
2022-03-18 10:57:12 +01:00

28 lines
726 B
TypeScript

/* eslint-disable filenames/match-exported */
import { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
webServer: {
command: 'npm run serve',
url: 'http://127.0.0.1:4010',
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,
},
use: {
trace: {
mode: 'retain-on-failure',
screenshots: true,
snapshots: true,
},
},
reporter: process.env.CI ? 'github' : 'list',
timeout: process.env.CI ? 60 * 1000 : 20 * 1000,
forbidOnly: !!process.env.CI,
outputDir: 'screenshots',
testDir: 'tests',
expect: {
timeout: process.env.CI ? 25 * 1000 : 10 * 1000,
},
workers: process.env.CI ? 1 : undefined,
};
export default config;