From 222db29b476a862c097afea99c7aa0efa65e8531 Mon Sep 17 00:00:00 2001 From: Rory Doak Date: Tue, 17 Sep 2024 14:29:30 +0100 Subject: [PATCH] remove redundant imports / variables --- .../src/@planx/components/MapAndLabel/Public/index.test.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.test.tsx b/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.test.tsx index 39a9b7dd87..c79f02117e 100644 --- a/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.test.tsx +++ b/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.test.tsx @@ -121,7 +121,6 @@ describe("validation and error handling", () => { // it shows all fields are required in a tab it("should show all fields are required, for all feature tabs", async () => { const { getByTestId, getByRole, user } = setup(); - getByTestId("map-and-label-map"); addMultipleFeatures([point1, point2]); @@ -156,7 +155,6 @@ describe("validation and error handling", () => { // it shows all fields are required across different tabs it("should show an error if the minimum number of items is not met", async () => { const { getByTestId, user } = setup(); - getByTestId("map-and-label-map"); await clickContinue(user); @@ -235,8 +233,7 @@ describe("basic interactions - happy path", () => { }); it("adding multiple features to the map adds multiple feature tabs", async () => { - const { getByTestId, queryByRole } = setup(); - const map = getByTestId("map-and-label-map"); + const { queryByRole } = setup(); addMultipleFeatures([point1, point2, point3]); @@ -288,7 +285,6 @@ describe("basic interactions - happy path", () => { }); it("a user can input details on feature tabs in any order", async () => { const { getByTestId, getByRole, user } = setup(); - const map = getByTestId("map-and-label-map"); addMultipleFeatures([point1, point2]);