mirror of
https://github.com/nasa/openmct.git
synced 2024-12-24 07:16:39 +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>
89 lines
1.8 KiB
JavaScript
89 lines
1.8 KiB
JavaScript
// playwright.config.js
|
|
// @ts-check
|
|
|
|
/** @type {import('@playwright/test').PlaywrightTestConfig} */
|
|
const config = {
|
|
retries: 0,
|
|
testDir: 'tests',
|
|
testMatch: '**/*.e2e.spec.js', // only run e2e tests
|
|
testIgnore: '**/*.perf.spec.js',
|
|
timeout: 30 * 1000,
|
|
webServer: {
|
|
command: 'npm run start:coverage',
|
|
url: 'http://localhost:8080/#',
|
|
timeout: 120 * 1000,
|
|
reuseExistingServer: true
|
|
},
|
|
workers: 1,
|
|
use: {
|
|
browserName: 'chromium',
|
|
baseURL: 'http://localhost:8080/',
|
|
headless: false,
|
|
ignoreHTTPSErrors: true,
|
|
screenshot: 'only-on-failure',
|
|
trace: 'retain-on-failure',
|
|
video: 'off'
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chrome',
|
|
use: {
|
|
browserName: 'chromium'
|
|
}
|
|
},
|
|
{
|
|
name: 'MMOC',
|
|
grepInvert: /@snapshot/,
|
|
use: {
|
|
browserName: 'chromium',
|
|
viewport: {
|
|
width: 2560,
|
|
height: 1440
|
|
}
|
|
}
|
|
},
|
|
{
|
|
name: 'safari',
|
|
grepInvert: /@snapshot/,
|
|
use: {
|
|
browserName: 'webkit'
|
|
}
|
|
},
|
|
{
|
|
name: 'firefox',
|
|
grepInvert: /@snapshot/,
|
|
use: {
|
|
browserName: 'firefox'
|
|
}
|
|
},
|
|
{
|
|
name: 'canary',
|
|
grepInvert: /@snapshot/,
|
|
use: {
|
|
browserName: 'chromium',
|
|
channel: 'chrome-canary' //Note this is not available in ubuntu/CircleCI
|
|
}
|
|
},
|
|
{
|
|
name: 'chrome-beta',
|
|
grepInvert: /@snapshot/,
|
|
use: {
|
|
browserName: 'chromium',
|
|
channel: 'chrome-beta'
|
|
}
|
|
}
|
|
],
|
|
reporter: [
|
|
['list'],
|
|
[
|
|
'html',
|
|
{
|
|
open: 'on-failure',
|
|
outputFolder: '../html-test-results' //Must be in different location due to https://github.com/microsoft/playwright/issues/12840
|
|
}
|
|
]
|
|
]
|
|
};
|
|
|
|
export default config;
|