From 96ccaf1b4527836cd220a9425c99fc3365e3db7b Mon Sep 17 00:00:00 2001 From: Nisha Yerunkar Date: Tue, 12 Mar 2024 18:28:07 -0700 Subject: [PATCH] Make tests nicer --- .../perseus/src/widgets/__tests__/interactive-graph.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/perseus/src/widgets/__tests__/interactive-graph.test.ts b/packages/perseus/src/widgets/__tests__/interactive-graph.test.ts index 5d80a46c6a..624489a101 100644 --- a/packages/perseus/src/widgets/__tests__/interactive-graph.test.ts +++ b/packages/perseus/src/widgets/__tests__/interactive-graph.test.ts @@ -193,7 +193,7 @@ describe("locked layer", () => { // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access const points = container.querySelectorAll( // Filter out the interactive points' circles - "circle:not(.mafs-movable-point):not(.mafs-movable-point-hitbox):not(.mafs-movable-point-focus):not(.mafs-movable-point-ring):not(.mafs-movable-point-point)", + "circle:not([class*='mafs-movable-point'])", ); // Act @@ -212,7 +212,7 @@ describe("locked layer", () => { // Act // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access const points = container.querySelectorAll( - "circle:not(.mafs-movable-point):not(.mafs-movable-point-hitbox):not(.mafs-movable-point-focus):not(.mafs-movable-point-ring):not(.mafs-movable-point-point)", + "circle:not([class*='mafs-movable-point'])", ); // Assert