mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 12:18:15 +08:00
chore: fix failed e2e
This commit is contained in:
parent
61ac914772
commit
1ce5d76b7e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user