fix: checkbox e2e test (#5508)

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')