chore: fix failed e2e

This commit is contained in:
Zeke Zhang 2024-05-07 21:47:57 +08:00
parent 61ac914772
commit 1ce5d76b7e

View File

@ -371,9 +371,11 @@ test.describe('table block schema settings', () => {
// 初次点击,变为选中状态
await page.getByRole('button', { name: 'Admin' }).click();
await expect(page.getByLabel('block-item-CollectionField-').getByText('Admin')).toBeVisible();
// 因为只有一条数据,所以不显示分页器
await expect(page.getByLabel('block-item-CardItem-roles-details').locator('.ant-pagination')).toBeHidden();
// 再次点击,取消选中状态
await page.getByRole('button', { name: 'Admin' }).click();
await expect(page.getByLabel('block-item-CollectionField-').getByText('Admin')).toBeHidden();
await expect(page.getByLabel('block-item-CardItem-roles-details').locator('.ant-pagination')).toBeVisible();
// 4. 删除详情区块Connect data blocks 的下拉菜单应该立即消失
await page.getByLabel('block-item-CardItem-roles-details').hover();
@ -415,9 +417,11 @@ test.describe('table block schema settings', () => {
// 初次点击,变为选中状态
await page.getByRole('button', { name: 'Admin' }).click();
await expect(page.getByLabel('block-item-CollectionField-').getByText('Admin')).toBeVisible();
// 因为只有一条数据,所以不显示分页器
await expect(page.getByLabel('block-item-CardItem-roles-details').locator('.ant-pagination')).toBeHidden();
// 再次点击,取消选中状态
await page.getByRole('button', { name: 'Admin' }).click();
await expect(page.getByLabel('block-item-CollectionField-').getByText('Admin')).toBeHidden();
await expect(page.getByLabel('block-item-CardItem-roles-details').locator('.ant-pagination')).toBeVisible();
// 5. 删除详情区块Connect data blocks 的下拉菜单应该立即消失
await page.getByLabel('block-item-CardItem-roles-details').hover();