fix(e2e): Stabilize ITC tests (#6933)

* fix(ITC): initialize ITC in `created()` hook

* fix(e2e): stabilize ITC tests

* docs: add JSDocs

* refactor: lint:fix

* test(e2e): add comment and assertion

* refactor: lint:fix
This commit is contained in:
Jesse Mazzella
2023-08-16 12:02:09 -07:00
committed by GitHub
parent 6c92e31036
commit f21685e216
3 changed files with 27 additions and 4 deletions

View File

@ -91,8 +91,10 @@ test.describe('Plot Tagging', () => {
await expect(page.getByText('No tags to display for this item')).toBeVisible();
const canvas = page.locator('canvas').nth(1);
//Wait for canvas to stabilize.
await waitForPlotsToRender(page);
await expect(canvas).toBeInViewport();
await canvas.hover({ trial: true });
// click on the tagged plot point