From 23eb3a47c2800d703b763d47cdf4a2636388f433 Mon Sep 17 00:00:00 2001 From: Ben Elan Date: Fri, 26 Apr 2024 16:22:44 -0700 Subject: [PATCH] test(segmented-control): enable form validation tests (#9206) Enable the form validation test utils for `segmented-control`. --- .../components/segmented-control/segmented-control.e2e.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/calcite-components/src/components/segmented-control/segmented-control.e2e.ts b/packages/calcite-components/src/components/segmented-control/segmented-control.e2e.ts index d7f6a36215c..b3a3bd56b70 100644 --- a/packages/calcite-components/src/components/segmented-control/segmented-control.e2e.ts +++ b/packages/calcite-components/src/components/segmented-control/segmented-control.e2e.ts @@ -403,8 +403,6 @@ describe("calcite-segmented-control", () => { }); describe("is form-associated", () => { - const formAssociatedOptions = { testValue: "2" }; - describe("unselected value", () => { formAssociated( html` @@ -414,7 +412,7 @@ describe("calcite-segmented-control", () => { three `, - formAssociatedOptions, + { testValue: 2, validation: true, changeValueKeys: ["Space"] }, ); }); @@ -427,7 +425,7 @@ describe("calcite-segmented-control", () => { three `, - formAssociatedOptions, + { testValue: 2 }, ); }); });