Skip to content

Commit

Permalink
Fix locators
Browse files Browse the repository at this point in the history
  • Loading branch information
shefalijoshi committed Mar 4, 2024
1 parent 6653455 commit 08e9770
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/tests/functional/plugins/plot/overlayPlot.e2e.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ test.describe('Overlay Plot', () => {
description: 'https://github.com/nasa/openmct/issues/6987'
});
// Create an Overlay Plot with a default SWG
const overlayPlot = await createDomainObjectWithDefaults(page, {
overlayPlot = await createDomainObjectWithDefaults(page, {
type: 'Overlay Plot'
});

Expand All @@ -211,7 +211,7 @@ test.describe('Overlay Plot', () => {
expect(await page.locator('.c-plot-limit-line').count()).toBe(0);

// Enter edit mode
await page.click('button[title="Edit"]');
await page.getByLabel('Edit Object').click();

// Expand the "Sine Wave Generator" plot series options and enable limit lines
await page.getByRole('tab', { name: 'Config' }).click();
Expand All @@ -233,7 +233,7 @@ test.describe('Overlay Plot', () => {

const initialCoords = await assertLimitLinesExistAndAreVisible(page);
// Resize the chart container by showing the snapshot pane.
await page.getByRole('button', { name: 'Show' }).click();
await page.getByLabel('Show Snapshots').click();

const newCoords = await assertLimitLinesExistAndAreVisible(page);
// We just need to know that the first limit line redrew somewhere lower than the initial y position.
Expand Down

0 comments on commit 08e9770

Please sign in to comment.