mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 14:26:36 +00:00
Revert "chore: make e2e tests more stable"
This reverts commit 46f219f0cc
.
This commit is contained in:
parent
bef0dcb7de
commit
2dfa7a2625
@ -731,7 +731,6 @@ test.describe('creation form block schema settings', () => {
|
|||||||
}).goto();
|
}).goto();
|
||||||
|
|
||||||
await page.waitForLoadState('networkidle');
|
await page.waitForLoadState('networkidle');
|
||||||
try {
|
|
||||||
await page.getByLabel('schema-initializer-Grid-page:addBlock').hover();
|
await page.getByLabel('schema-initializer-Grid-page:addBlock').hover();
|
||||||
//使用复制模板
|
//使用复制模板
|
||||||
await page.getByRole('menuitem', { name: 'form Form' }).first().hover();
|
await page.getByRole('menuitem', { name: 'form Form' }).first().hover();
|
||||||
@ -773,27 +772,16 @@ test.describe('creation form block schema settings', () => {
|
|||||||
).toHaveCount(2);
|
).toHaveCount(2);
|
||||||
|
|
||||||
//修改引用模板
|
//修改引用模板
|
||||||
await page
|
await page.locator('.ant-drawer').getByLabel('schema-initializer-Grid-form:configureFields-users').first().hover();
|
||||||
.locator('.ant-drawer')
|
|
||||||
.getByLabel('schema-initializer-Grid-form:configureFields-users')
|
|
||||||
.first()
|
|
||||||
.hover();
|
|
||||||
await page.getByRole('menuitem', { name: 'Phone' }).click();
|
await page.getByRole('menuitem', { name: 'Phone' }).click();
|
||||||
await page.locator('.ant-drawer-mask').click();
|
await page.locator('.ant-drawer-mask').click();
|
||||||
//复制模板不同步,引用模板同步
|
//复制模板不同步,引用模板同步
|
||||||
await expect(
|
await expect(
|
||||||
page
|
page.getByLabel('block-item-CardItem-users-form').getByLabel('block-item-CollectionField-users-form-users.phone'),
|
||||||
.getByLabel('block-item-CardItem-users-form')
|
|
||||||
.getByLabel('block-item-CollectionField-users-form-users.phone'),
|
|
||||||
).not.toBeVisible();
|
).not.toBeVisible();
|
||||||
await page.getByLabel('block-item-CardItem-users-table').getByLabel('action-Action-Add').click();
|
await page.getByLabel('block-item-CardItem-users-table').getByLabel('action-Action-Add').click();
|
||||||
await expect(page.getByLabel('block-item-CollectionField-users-form-users.phone')).toBeVisible();
|
await expect(page.getByLabel('block-item-CollectionField-users-form-users.phone')).toBeVisible();
|
||||||
await page.locator('.ant-drawer-mask').click();
|
await page.locator('.ant-drawer-mask').click();
|
||||||
} catch (error) {
|
|
||||||
//删除模板
|
|
||||||
await clearBlockTemplates();
|
|
||||||
throw error;
|
|
||||||
}
|
|
||||||
|
|
||||||
//删除模板
|
//删除模板
|
||||||
await clearBlockTemplates();
|
await clearBlockTemplates();
|
||||||
|
Loading…
Reference in New Issue
Block a user