mirror of
https://github.com/nasa/openmct.git
synced 2024-12-21 06:03:08 +00:00
02c2fb5655
* First example of playwright * Move config * set junit output * fix config and update version * staged changes * new files * update to remote dir * remove remote * smoke * Update smoke.spec.js * Add eslint for playwright * Add dependabot rule for playwright * Add adhoc GHA for playwright * Update tests and fix eslint * move playwright eslint config to e2e dir * Add to circle config * store artifacts * wrong location for storing artifacts * slash? * build before start * increase timeouts in circle * remove duplicate build step * timeout values * add retries * reduce retries * add percy emblem * added percy * Adds GHA for adhoc trigger and baseline visual * Bump and Rev dependabot separte from karma * update e2e label for additional pr logic * Ignore playwright changes for codeql * Update documentation * Add ability to run all tests on pr label * eof * yamlamlaml * issue instead of pull api * archive results and include a link in the PR comment * log context and attempt string concat * concat fix * add success/failure options * add alure reporting * lock playwright image Co-authored-by: unlikelyzero <jchill2@gmail.com>
33 lines
743 B
JavaScript
33 lines
743 B
JavaScript
/* eslint-disable no-undef */
|
|
// playwright.config.js
|
|
// @ts-check
|
|
|
|
/** @type {import('@playwright/test').PlaywrightTestConfig} */
|
|
const config = {
|
|
retries: 0,
|
|
testDir: 'tests',
|
|
timeout: 90 * 1000,
|
|
webServer: {
|
|
command: 'npm run start',
|
|
port: 8080,
|
|
timeout: 200 * 1000,
|
|
reuseExistingServer: !process.env.CI
|
|
},
|
|
use: {
|
|
browserName: "chromium",
|
|
baseURL: 'http://localhost:8080/',
|
|
headless: true,
|
|
ignoreHTTPSErrors: true,
|
|
screenshot: 'on',
|
|
trace: 'off',
|
|
video: 'on'
|
|
},
|
|
reporter: [
|
|
['list'],
|
|
['junit', { outputFile: 'test-results/results.xml' }],
|
|
['allure-playwright']
|
|
]
|
|
};
|
|
|
|
module.exports = config;
|