fix: checkbox e2e test (#5508)
Some checks are pending
Build docker image / build-and-push (push) Waiting to run
Build pro image / build-and-push (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase frontEnd test / frontend-test (18) (push) Waiting to run

This commit is contained in:
Katherine 2024-10-24 20:43:21 +08:00 committed by GitHub
parent 055a55c4dc
commit 95aeb343f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -192,10 +192,9 @@ test.describe('form item & edit form', () => {
).toBeDisabled();
},
expectEasyReading: async () => {
// checkbox 应该被隐藏,然后只显示一个图标
await expect(
page.getByLabel('block-item-CollectionField-general-form-general.checkbox-checkbox').getByRole('checkbox'),
).not.toBeVisible();
).toBeVisible();
await expect(
page
.getByLabel('block-item-CollectionField-general-form-general.checkbox-checkbox')