Skip to content

Commit

Permalink
test: add assertions to stabilize tags tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ozyx committed Aug 14, 2023
1 parent 745880d commit 8673f96
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions e2e/tests/functional/plugins/plot/tagging.e2e.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const {
createDomainObjectWithDefaults,
setRealTimeMode,
setFixedTimeMode,
waitForPlotsToRender
waitForPlotsToRender,
selectInspectorTab
} = require('../../../../appActions');

test.describe('Plot Tagging', () => {
Expand Down Expand Up @@ -146,7 +147,10 @@ test.describe('Plot Tagging', () => {
// wait for plots to load
await waitForPlotsToRender(page);

await page.getByText('Annotations').click();
await expect(page.getByRole('tab', { name: 'Annotations' })).not.toHaveClass(/is-current/);
await selectInspectorTab(page, 'Annotations');
await expect(page.getByRole('tab', { name: 'Annotations' })).toHaveClass(/is-current/);

await expect(page.getByText('No tags to display for this item')).toBeVisible();

const canvas = page.locator('canvas').nth(1);
Expand Down

0 comments on commit 8673f96

Please sign in to comment.