mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 13:02:07 +03:00
e6b904d012
A stub for integration tests to be run locally; part of #8487 To run tests, you need to: 1. Build IDE package: `./run ide build` 2. set ENSO_TEST_USER and ENSO_TEST_USER_PASSWORD to some working credentials (I used my personal account, but there will be also test user soon) 3. run `corepack pnpm -r --filter enso exec playwright test` The tests are run with a separate projects directory set up in tmpdir, so any local workspace dir is not affected. The only test so far just checks if it's possible to log in and create a new project.
21 lines
527 B
TypeScript
21 lines
527 B
TypeScript
/** @file Playwright browser testing configuration. */
|
|
import { defineConfig } from '@playwright/test'
|
|
|
|
/* eslint-disable @typescript-eslint/no-magic-numbers, @typescript-eslint/strict-boolean-expressions */
|
|
|
|
export default defineConfig({
|
|
testDir: './tests',
|
|
forbidOnly: !!process.env.CI,
|
|
workers: 1,
|
|
timeout: 60000,
|
|
reportSlowTests: { max: 5, threshold: 60000 },
|
|
globalSetup: './tests/setup.ts',
|
|
expect: {
|
|
timeout: 5000,
|
|
toHaveScreenshot: { threshold: 0 },
|
|
},
|
|
use: {
|
|
actionTimeout: 5000,
|
|
},
|
|
})
|