mirror of
https://github.com/nasa/openmct.git
synced 2025-02-02 17:21:14 +00:00
Add the ability to run percy with the mobile tests
This commit is contained in:
parent
87ba9fcbc0
commit
26a4f9c7d0
30
e2e/.percy.mobile.yml
Normal file
30
e2e/.percy.mobile.yml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
version: 2
|
||||||
|
snapshot:
|
||||||
|
percyCSS: |
|
||||||
|
/* Clock indicator... your days are numbered */
|
||||||
|
.t-indicator-clock > .label {
|
||||||
|
opacity: 0 !important;
|
||||||
|
}
|
||||||
|
.c-input--datetime {
|
||||||
|
opacity: 0 !important;
|
||||||
|
}
|
||||||
|
/* Timer object text */
|
||||||
|
.c-ne__time-and-creator {
|
||||||
|
opacity: 0 !important;
|
||||||
|
}
|
||||||
|
/* Time Conductor ticks */
|
||||||
|
div.c-conductor-axis.c-conductor__ticks > svg {
|
||||||
|
opacity: 0 !important;
|
||||||
|
}
|
||||||
|
/* Embedded timestamp in notebooks */
|
||||||
|
.c-ne__embed__time{
|
||||||
|
opacity: 0 !important;
|
||||||
|
}
|
||||||
|
/* Time Conductor Start Time */
|
||||||
|
.c-compact-tc__setting-value{
|
||||||
|
opacity: 0 !important;
|
||||||
|
}
|
||||||
|
/* Chart Area for Plots */
|
||||||
|
.gl-plot-chart-area{
|
||||||
|
opacity: 0 !important;
|
||||||
|
}
|
@ -34,6 +34,20 @@ Make no assumptions about the order that elements appear in the DOM.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { expect, test } from '../../pluginFixtures.js';
|
import { expect, test } from '../../pluginFixtures.js';
|
||||||
|
import percySnapshot from '@percy/playwright';
|
||||||
|
|
||||||
|
test.describe('Visual Smoke tests for @mobile', () => {
|
||||||
|
test.beforeEach(async ({ page }) => {
|
||||||
|
//For now, this test is going to be hardcoded against './test-data/display_layout_with_child_layouts.json'
|
||||||
|
await page.goto('./');
|
||||||
|
});
|
||||||
|
|
||||||
|
test.only('Verify that My Items Tree appears @mobile', async ({ page }) => {
|
||||||
|
//My Items to be visible
|
||||||
|
await expect(page.getByRole('treeitem', { name: 'My Items' })).toBeVisible();
|
||||||
|
await percySnapshot(page, `Visual Mobile Smoke Test`);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
test.describe('Smoke tests for @mobile', () => {
|
test.describe('Smoke tests for @mobile', () => {
|
||||||
test.beforeEach(async ({ page }) => {
|
test.beforeEach(async ({ page }) => {
|
||||||
|
@ -110,6 +110,7 @@
|
|||||||
"test:e2e": "npx playwright test",
|
"test:e2e": "npx playwright test",
|
||||||
"test:e2e:a11y": "npx playwright test --config=e2e/playwright-visual-a11y.config.js --project=chrome --grep @a11y",
|
"test:e2e:a11y": "npx playwright test --config=e2e/playwright-visual-a11y.config.js --project=chrome --grep @a11y",
|
||||||
"test:e2e:mobile": "npx playwright test --config=e2e/playwright-mobile.config.js",
|
"test:e2e:mobile": "npx playwright test --config=e2e/playwright-mobile.config.js",
|
||||||
|
"test:e2e:mobile:visual": "percy exec --config ./e2e/.percy.mobile.yml -- npx playwright test --config=e2e/playwright-mobile.config.js",
|
||||||
"test:e2e:couchdb": "npx playwright test --config=e2e/playwright-ci.config.js --project=chrome --grep @couchdb --workers=1",
|
"test:e2e:couchdb": "npx playwright test --config=e2e/playwright-ci.config.js --project=chrome --grep @couchdb --workers=1",
|
||||||
"test:e2e:stable": "npx playwright test --config=e2e/playwright-ci.config.js --project=chrome --grep-invert \"@unstable|@couchdb|@generatedata\"",
|
"test:e2e:stable": "npx playwright test --config=e2e/playwright-ci.config.js --project=chrome --grep-invert \"@unstable|@couchdb|@generatedata\"",
|
||||||
"test:e2e:unstable": "npx playwright test --config=e2e/playwright-ci.config.js --project=chrome --grep @unstable",
|
"test:e2e:unstable": "npx playwright test --config=e2e/playwright-ci.config.js --project=chrome --grep @unstable",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user