From 6c9d1ed43422e611ef545e9266ab4634bee00e4b Mon Sep 17 00:00:00 2001 From: Jerry_wu <409187100@qq.com> Date: Thu, 30 May 2024 13:22:24 +0800 Subject: [PATCH] fix it --- .../src/components/checkbox/checkbox.test.ts | 60 ++++++++++--------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/packages/kit-headless/src/components/checkbox/checkbox.test.ts b/packages/kit-headless/src/components/checkbox/checkbox.test.ts index 1b50e098a..11b213c7c 100644 --- a/packages/kit-headless/src/components/checkbox/checkbox.test.ts +++ b/packages/kit-headless/src/components/checkbox/checkbox.test.ts @@ -31,7 +31,7 @@ async function setup(page: Page, exampleName: string) { test.describe('checklist', () => { test(`GIVEN a mixed checklist WHEN the checklist renders - IT should render the mixed img + THEN should render the mixed img AND not the true img`, async ({ page }) => { const exampleName = 'test-controlled-list-mixed'; await setup(page, exampleName); @@ -41,7 +41,7 @@ test.describe('checklist', () => { test(`GIVEN an all-checked checklist WHEN the checklist renders - IT should render the true img + THEN should render the true img AND not the mixed img`, async ({ page }) => { const exampleName = 'test-controlled-list-true'; await setup(page, exampleName); @@ -51,7 +51,7 @@ test.describe('checklist', () => { test(`GIVEN an all-unchecked checklist WHEN the checklist renders - IT should render the true img and the mixed img`, async ({ page }) => { + THEN should render the true img and the mixed img`, async ({ page }) => { const exampleName = 'test-controlled-list-false'; await setup(page, exampleName); await expect(page.locator('#true-img')).toBeHidden(); @@ -60,7 +60,7 @@ test.describe('checklist', () => { test(`GIVEN a checklist with checkboxes WHEN the elements render - IT the checklist should be a