mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 21:53:08 +00:00
6393a77c19
* Add status area back to mobile * Make search results responsive to width * Make clear search button always visible, regardless of hover * Make clear search button visible, and fix weird margin in top left corner * Fix input width, add logic to make close button work properly, fix margin on results so there is room for close button, fix various landscape mode issues * update mobile testing * Fix dropdown sizes, remove shadows and corners to make it look less like a popup and more full screen * Add animation and persist search bar in mobile * Fix linting issues * Fix padding in Desktop * fix padding in status area * fix bad merge * lint fixes * fix bad merge... again * again * fixes to mobile * update tests * lint fix * test fixes --------- Co-authored-by: John Hill <john.c.hill@nasa.gov>
84 lines
2.4 KiB
JavaScript
84 lines
2.4 KiB
JavaScript
// playwright.config.js
|
|
// @ts-check
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
import { devices } from '@playwright/test';
|
|
const MAX_FAILURES = 5;
|
|
const NUM_WORKERS = 2;
|
|
|
|
/** @type {import('@playwright/test').PlaywrightTestConfig} */
|
|
const config = {
|
|
retries: 2, //Retries 2 times for a total of 3 runs. When running sharded and with max-failures=5, this should ensure that flake is managed without failing the full suite
|
|
testDir: 'tests',
|
|
grepInvert: /@mobile/, //Ignore mobile tests
|
|
testIgnore: '**/*.perf.spec.js', //Ignore performance tests and define in playwright-perfromance.config.js
|
|
timeout: 60 * 1000,
|
|
webServer: {
|
|
command: 'npm run start:coverage',
|
|
url: 'http://localhost:8080/#',
|
|
timeout: 200 * 1000,
|
|
reuseExistingServer: true //This was originally disabled to prevent differences in local debugging vs. CI. However, it significantly speeds up local debugging.
|
|
},
|
|
maxFailures: MAX_FAILURES, //Limits failures to 5 to reduce CI Waste
|
|
workers: NUM_WORKERS, //Limit to 2 for CircleCI Agent
|
|
use: {
|
|
baseURL: 'http://localhost:8080/',
|
|
headless: true,
|
|
ignoreHTTPSErrors: true,
|
|
screenshot: 'only-on-failure',
|
|
trace: 'on-first-retry',
|
|
video: 'off'
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chrome',
|
|
testMatch: '**/*.e2e.spec.js', // only run e2e tests
|
|
use: {
|
|
browserName: 'chromium'
|
|
}
|
|
},
|
|
{
|
|
name: 'MMOC',
|
|
testMatch: '**/*.e2e.spec.js', // only run e2e tests
|
|
grepInvert: /@snapshot/,
|
|
use: {
|
|
browserName: 'chromium',
|
|
viewport: {
|
|
width: 2560,
|
|
height: 1440
|
|
}
|
|
}
|
|
},
|
|
{
|
|
name: 'firefox',
|
|
testMatch: '**/*.e2e.spec.js', // only run e2e tests
|
|
grepInvert: /@snapshot/,
|
|
use: {
|
|
browserName: 'firefox'
|
|
}
|
|
},
|
|
{
|
|
name: 'chrome-beta', //Only Chrome Beta is available on ubuntu -- not chrome canary
|
|
testMatch: '**/*.e2e.spec.js', // only run e2e tests
|
|
grepInvert: /@snapshot/,
|
|
use: {
|
|
browserName: 'chromium',
|
|
channel: 'chrome-beta'
|
|
}
|
|
}
|
|
],
|
|
reporter: [
|
|
['list'],
|
|
[
|
|
'html',
|
|
{
|
|
open: 'never',
|
|
outputFolder: '../html-test-results' //Must be in different location due to https://github.com/microsoft/playwright/issues/12840
|
|
}
|
|
],
|
|
['junit', { outputFile: '../test-results/results.xml' }]
|
|
]
|
|
};
|
|
|
|
export default config;
|