From 66834f679d7574d813cd8744c15f07d3bd1071ab Mon Sep 17 00:00:00 2001 From: NateLanza Date: Wed, 22 Jan 2025 11:30:09 -0700 Subject: [PATCH] Add plot removal to element view test --- e2e-tests/elementView.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/e2e-tests/elementView.spec.ts b/e2e-tests/elementView.spec.ts index 2aa76674..4a77bd51 100644 --- a/e2e-tests/elementView.spec.ts +++ b/e2e-tests/elementView.spec.ts @@ -178,6 +178,13 @@ test('Element View', async ({ page, browserName }) => { await expect(schoolMaleSelectionRect).toBeVisible(); await expect(schoolBlueHairMaleSelectionRect).toBeVisible(); await expect(schoolMale3rdPoly).toBeVisible(); + + /* + * Plot removal + */ + await page.locator('div').filter({ hasText: /^Add Plot$/ }).getByRole('button').nth(1) + .click(); + await expect(page.locator('canvas')).not.toBeVisible(); }); /**