Skip to content

Commit c8eda9e

Browse files
committed
Playwright broke our test
1 parent 4c930e7 commit c8eda9e

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

e2e/tests/functional/plugins/displayLayout/displayLayout.e2e.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ test.describe('Display Layout Sub-object Actions @localStorage', () => {
5959
await page.goto('./', { waitUntil: 'domcontentloaded' });
6060
await page.getByLabel('Expand My Items folder').click();
6161
const waitForDisplayLayoutNavigation = page.waitForURL(
62+
//eslint-disable-next-line
6263
new RegExp(`.*/${TEST_DISPLAY_LAYOUT_ID.key}/\?.*`)
6364
);
6465
await page

e2e/tests/functional/plugins/plot/overlayPlot.e2e.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ test.describe('Overlay Plot', () => {
106106
// Assert that the legend is now open
107107
await expect(page.getByLabel('Plot Legend Collapsed')).toBeHidden();
108108
await expect(page.getByLabel('Plot Legend Expanded')).toBeVisible();
109-
await expect(page.getByRole('cell', { name: 'Name' })).toBeVisible();
110-
await expect(page.getByRole('cell', { name: 'Timestamp' })).toBeVisible();
111-
await expect(page.getByRole('cell', { name: 'Value' })).toBeVisible();
109+
await expect(page.getByRole('columnheader', { name: 'Name' })).toBeVisible();
110+
await expect(page.getByRole('columnheader', { name: 'Timestamp' })).toBeVisible();
111+
await expect(page.getByRole('columnheader', { name: 'Value' })).toBeVisible();
112112
await expect(page.getByLabel('Expand by Default')).toHaveText(/Yes/);
113113
await expect(page.getByLabel('Plot Legend Item')).toHaveCount(3);
114114

@@ -119,9 +119,9 @@ test.describe('Overlay Plot', () => {
119119

120120
await expect(page.getByLabel('Plot Legend Collapsed')).toBeHidden();
121121
await expect(page.getByLabel('Plot Legend Expanded')).toBeVisible();
122-
await expect(page.getByRole('cell', { name: 'Name' })).toBeVisible();
123-
await expect(page.getByRole('cell', { name: 'Timestamp' })).toBeVisible();
124-
await expect(page.getByRole('cell', { name: 'Value' })).toBeVisible();
122+
await expect(page.getByRole('columnheader', { name: 'Name' })).toBeVisible();
123+
await expect(page.getByRole('columnheader', { name: 'Timestamp' })).toBeVisible();
124+
await expect(page.getByRole('columnheader', { name: 'Value' })).toBeVisible();
125125
await expect(page.getByLabel('Expand by Default')).toHaveText(/Yes/);
126126
await expect(page.getByLabel('Plot Legend Item')).toHaveCount(3);
127127
});

0 commit comments

Comments
 (0)