mirror of
https://github.com/nasa/openmct.git
synced 2024-12-26 00:01:05 +00:00
c56d458ecb
* Renamed test files * temp push of performance branch * comma * stash * final * rename to imagery * remove old * stash * fix name * Add plain notebook e2e and perf test * Shard and add perf to ci * Import fixtures * 3 * also off by one? * forgive me, father * update perf test name * SHARD * one mo shot * add suites * failfast * remove allure * add more testsuites * full * skip * ignore glob * headless? * skip audit to save ci time * temp push * remove allure * remove doubled test and update snapshots * update snapthos 2 * back to ci * update comments * remove notebook * updates * remove npx playwright install * Prevent deleting browsers * circleci comment * re-enable audit * Add html reporter * speed up execution * speed up CI * Add performance line to bug report * PR Comments * change dir of report * remove test * Update Tracepath. Update playwright-percy * Remove shim * Improve stability and move html report * fix space * Add more slowdown for moveObjects * Get rid of navigation event * fix missing events * review comments * last change! Co-authored-by: unlikelyzero <jchill2@gmail.com>
68 lines
1.9 KiB
JavaScript
68 lines
1.9 KiB
JavaScript
/* eslint-disable no-undef */
|
|
// playwright.config.js
|
|
// @ts-check
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
const { devices } = require('@playwright/test');
|
|
|
|
/** @type {import('@playwright/test').PlaywrightTestConfig} */
|
|
const config = {
|
|
retries: 1,
|
|
testDir: 'tests',
|
|
testIgnore: '**/*.perf.spec.js', //Ignore performance tests and define in playwright-perfromance.config.js
|
|
timeout: 60 * 1000,
|
|
webServer: {
|
|
command: 'npm run start',
|
|
port: 8080,
|
|
timeout: 200 * 1000,
|
|
reuseExistingServer: !process.env.CI
|
|
},
|
|
maxFailures: process.env.CI ? 5 : undefined, //Limits failures to 5 to reduce CI Waste
|
|
workers: 2, //Limit to 2 for CircleCI Agent
|
|
use: {
|
|
baseURL: 'http://localhost:8080/',
|
|
headless: true,
|
|
ignoreHTTPSErrors: true,
|
|
screenshot: 'only-on-failure',
|
|
trace: 'on-first-retry',
|
|
video: 'on-first-retry'
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chrome',
|
|
use: {
|
|
browserName: 'chromium'
|
|
}
|
|
},
|
|
{
|
|
name: 'MMOC',
|
|
grepInvert: /@snapshot/,
|
|
use: {
|
|
browserName: 'chromium',
|
|
viewport: {
|
|
width: 2560,
|
|
height: 1440
|
|
}
|
|
}
|
|
}
|
|
/*{
|
|
name: 'ipad',
|
|
use: {
|
|
browserName: 'webkit',
|
|
...devices['iPad (gen 7) landscape'] // Complete List https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/server/deviceDescriptorsSource.json
|
|
}
|
|
}*/
|
|
],
|
|
reporter: [
|
|
['list'],
|
|
['html', {
|
|
open: 'never',
|
|
outputFolder: '../test-results/html/'
|
|
}],
|
|
['junit', { outputFile: 'test-results/results.xml' }],
|
|
['github']
|
|
]
|
|
};
|
|
|
|
module.exports = config;
|