Skip to content

Commit

Permalink
fix: woops those are already ignored heehee
Browse files Browse the repository at this point in the history
  • Loading branch information
ozyx committed Mar 26, 2024
1 parent 2d0bca0 commit ce0fdea
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions e2e/tests/visual-a11y/displayLayout.visual.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import { createDomainObjectWithDefaults } from '../../appActions.js';
import { MISSION_TIME, VISUAL_FIXED_URL } from '../../constants.js';
import { test } from '../../pluginFixtures.js';

const percyCSS = '[aria-label="Clock Indicator"] { opacity: 0 !important; }';

test.describe('Visual - Display Layout @clock', () => {
test.use({
clockOptions: {
Expand Down Expand Up @@ -82,19 +80,13 @@ test.describe('Visual - Display Layout @clock', () => {

test('Resize Marquee surrounds selection', async ({ page, theme }) => {
//This is where the beforeEach leaves off.
await percySnapshot(page, `Last modified object selected (theme: '${theme}')`, {
percyCSS
});
await percySnapshot(page, `Last modified object selected (theme: '${theme}')`);

await page.getByLabel('Child Left Layout Layout', { exact: true }).click();
await percySnapshot(page, `Only Left Child Layout has Marque selection (theme: '${theme}')`, {
percyCSS
});
await percySnapshot(page, `Only Left Child Layout has Marque selection (theme: '${theme}')`);

await page.getByLabel('Child Right Layout Layout', { exact: true }).click();
await percySnapshot(page, `Only Right Child Layout has Marque selection (theme: '${theme}')`, {
percyCSS
});
await percySnapshot(page, `Only Right Child Layout has Marque selection (theme: '${theme}')`);

//Only the sub-object in the Right Layout should be highlighted with a marquee
await page
Expand All @@ -104,14 +96,11 @@ test.describe('Visual - Display Layout @clock', () => {

await percySnapshot(
page,
`Selecting a sub-object from Right Layout selected (theme: '${theme}')`,
{ percyCSS }
`Selecting a sub-object from Right Layout selected (theme: '${theme}')`
);

await page.getByLabel('Parent Layout Layout', { exact: true }).click();
await percySnapshot(page, `Parent outer layout selected (theme: '${theme}')`, {
percyCSS
});
await percySnapshot(page, `Parent outer layout selected (theme: '${theme}')`);
});

test('Toolbar does not overflow into inspector', async ({ page, theme }) => {
Expand All @@ -121,8 +110,6 @@ test.describe('Visual - Display Layout @clock', () => {
});
await page.getByLabel('Expand Inspect Pane').click();
await page.getByLabel('Resize Inspect Pane').dragTo(page.getByLabel('X:'));
await percySnapshot(page, `Toolbar does not overflow into inspector (theme: '${theme}')`, {
percyCSS
});
await percySnapshot(page, `Toolbar does not overflow into inspector (theme: '${theme}')`);
});
});

0 comments on commit ce0fdea

Please sign in to comment.