mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
47d2a71279
* 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>
28 lines
726 B
TypeScript
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;
|