Merge branch 'main' into next

This commit is contained in:
nocobase[bot] 2024-12-02 11:54:12 +00:00
commit 0fbe4f0229

View File

@ -89,7 +89,7 @@ test.describe('where to open a popup and what can be added to it', () => {
// add blocks // add blocks
await addBlock(['Details right', 'Current record']); await addBlock(['Details right', 'Current record']);
await addBlock(['form Form (Edit)']); await addBlock(['Form (Edit)']);
await addBlock(['Markdown']); await addBlock(['Markdown']);
await expect(page.getByText('GeneralConfigure actionsConfigure fields')).toBeVisible(); await expect(page.getByText('GeneralConfigure actionsConfigure fields')).toBeVisible();
@ -118,7 +118,7 @@ test.describe('where to open a popup and what can be added to it', () => {
// add relationship blocks // add relationship blocks
await addBlock(['Details right', 'Associated records', 'Many to one']); await addBlock(['Details right', 'Associated records', 'Many to one']);
await expect(page.getByLabel('block-item-CardItem-users-')).toBeVisible(); await expect(page.getByLabel('block-item-CardItem-users-')).toBeVisible();
await addBlock(['table Table right', 'Associated records', 'One to many']); await addBlock(['Table right', 'Associated records', 'One to many']);
await expect(page.getByLabel('block-item-CardItem-users-table')).toBeVisible(); await expect(page.getByLabel('block-item-CardItem-users-table')).toBeVisible();
async function addBlock(names: string[]) { async function addBlock(names: string[]) {
@ -180,7 +180,7 @@ test.describe('where to open a popup and what can be added to it', () => {
await page.getByRole('menuitem', { name: 'Details' }).hover(); await page.getByRole('menuitem', { name: 'Details' }).hover();
await page.getByRole('menuitem', { name: 'Current record' }).click(); await page.getByRole('menuitem', { name: 'Current record' }).click();
await page.getByLabel('schema-initializer-Grid-popup:common:addBlock-general').hover(); await page.getByLabel('schema-initializer-Grid-popup:common:addBlock-general').hover();
await page.getByRole('menuitem', { name: 'form Form (Edit)' }).first().click(); await page.getByRole('menuitem', { name: 'Form (Edit)' }).first().click();
await page.getByLabel('schema-initializer-Grid-popup:common:addBlock-general').hover(); await page.getByLabel('schema-initializer-Grid-popup:common:addBlock-general').hover();
await page.getByRole('menuitem', { name: 'Markdown' }).click(); await page.getByRole('menuitem', { name: 'Markdown' }).click();
await page.mouse.move(300, 0); await page.mouse.move(300, 0);
@ -193,12 +193,12 @@ test.describe('where to open a popup and what can be added to it', () => {
// 下拉列表中,可选择以下区块进行创建 // 下拉列表中,可选择以下区块进行创建
await page.getByLabel('schema-initializer-Grid-popup:common:addBlock-general').hover(); await page.getByLabel('schema-initializer-Grid-popup:common:addBlock-general').hover();
await expect(page.getByRole('menuitem', { name: 'Details right' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Details right' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'form Form (Edit)' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Form (Edit)' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'form Form (Add new) right' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Form (Add new) right' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'form Form (Add new) right' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Form (Add new) right' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'table Table right' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Table right' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'ordered-list List right' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'List right' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'ordered-list Grid Card right' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Grid Card right' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'Calendar' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Calendar' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'Gantt' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Gantt' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'Kanban' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Kanban' })).toBeVisible();
@ -211,7 +211,7 @@ test.describe('where to open a popup and what can be added to it', () => {
await expect(page.getByLabel('block-item-CardItem-users-')).toBeVisible(); await expect(page.getByLabel('block-item-CardItem-users-')).toBeVisible();
await page.getByLabel('schema-initializer-Grid-popup:common:addBlock-general').hover(); await page.getByLabel('schema-initializer-Grid-popup:common:addBlock-general').hover();
await page.getByRole('menuitem', { name: 'table Table right' }).hover(); await page.getByRole('menuitem', { name: 'Table right' }).hover();
await page.getByRole('menuitem', { name: 'Associated records' }).hover(); await page.getByRole('menuitem', { name: 'Associated records' }).hover();
await page.getByRole('menuitem', { name: 'One to many' }).click(); await page.getByRole('menuitem', { name: 'One to many' }).click();
await page.mouse.move(300, 0); await page.mouse.move(300, 0);
@ -246,7 +246,7 @@ test.describe('where to open a popup and what can be added to it', () => {
await page.getByRole('menuitem', { name: 'Details' }).hover(); await page.getByRole('menuitem', { name: 'Details' }).hover();
await page.getByRole('menuitem', { name: 'Current record' }).click(); await page.getByRole('menuitem', { name: 'Current record' }).click();
await page.getByLabel('schema-initializer-Grid-popup:common:addBlock-general').hover(); await page.getByLabel('schema-initializer-Grid-popup:common:addBlock-general').hover();
await page.getByRole('menuitem', { name: 'form Form (Edit)' }).first().click(); await page.getByRole('menuitem', { name: 'Form (Edit)' }).first().click();
await page.getByLabel('schema-initializer-Grid-popup:common:addBlock-general').hover(); await page.getByLabel('schema-initializer-Grid-popup:common:addBlock-general').hover();
await page.getByRole('menuitem', { name: 'Markdown' }).click(); await page.getByRole('menuitem', { name: 'Markdown' }).click();
await page.mouse.move(300, 0); await page.mouse.move(300, 0);
@ -259,12 +259,12 @@ test.describe('where to open a popup and what can be added to it', () => {
// 下拉列表中,可选择以下区块进行创建 // 下拉列表中,可选择以下区块进行创建
await page.getByLabel('schema-initializer-Grid-popup:common:addBlock-general').hover(); await page.getByLabel('schema-initializer-Grid-popup:common:addBlock-general').hover();
await expect(page.getByRole('menuitem', { name: 'Details right' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Details right' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'form Form (Edit)' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Form (Edit)' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'form Form (Add new) right' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Form (Add new) right' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'form Form (Add new) right' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Form (Add new) right' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'table Table right' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Table right' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'ordered-list List right' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'List right' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'ordered-list Grid Card right' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Grid Card right' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'Calendar' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Calendar' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'Gantt' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Gantt' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'Kanban' })).toBeVisible(); await expect(page.getByRole('menuitem', { name: 'Kanban' })).toBeVisible();
@ -277,7 +277,7 @@ test.describe('where to open a popup and what can be added to it', () => {
await expect(page.getByLabel('block-item-CardItem-users-')).toBeVisible(); await expect(page.getByLabel('block-item-CardItem-users-')).toBeVisible();
await page.getByLabel('schema-initializer-Grid-popup:common:addBlock-general').hover(); await page.getByLabel('schema-initializer-Grid-popup:common:addBlock-general').hover();
await page.getByRole('menuitem', { name: 'table Table right' }).hover(); await page.getByRole('menuitem', { name: 'Table right' }).hover();
await page.getByRole('menuitem', { name: 'Associated records' }).hover(); await page.getByRole('menuitem', { name: 'Associated records' }).hover();
await page.getByRole('menuitem', { name: 'One to many' }).click(); await page.getByRole('menuitem', { name: 'One to many' }).click();
await page.mouse.move(300, 0); await page.mouse.move(300, 0);