test: e2e test (#4316)

* test: detail block linagerule test

* test: popup e2e test

* test: column fixed
This commit is contained in:
katherinehhh 2024-05-11 14:31:41 +08:00 committed by GitHub
parent e7ac08da8d
commit cff530acac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 958 additions and 0 deletions

View File

@ -12,7 +12,9 @@ import {
oneDetailBlockWithM2oFieldToGeneral,
oneEmptyDetailsBlock,
test,
expect,
} from '@nocobase/test/e2e';
import { detailBlockWithLinkageRule } from './templatesOfBug';
test.describe('multi data details block schema settings', () => {
test('supported options', async ({ page, mockPage, mockRecord }) => {
@ -36,6 +38,19 @@ test.describe('multi data details block schema settings', () => {
],
});
});
test('support linkage rule', async ({ page, mockPage }) => {
const nocoPage = await mockPage(detailBlockWithLinkageRule).waitForInit();
await nocoPage.goto();
await expect(page.getByLabel('block-item-CollectionField-users-details-users.email-Email')).not.toBeVisible();
// 禁用规则,联动规则失效
await page.getByLabel('block-item-CardItem-users-').hover();
await page.getByLabel('designer-schema-settings-CardItem-blockSettings:detailsWithPagination-users').hover();
await page.getByText('Linkage rules').click();
await page.getByRole('switch', { name: 'On Off' }).click();
await page.getByRole('button', { name: 'OK' }).click();
await page.reload();
await expect(page.getByLabel('block-item-CollectionField-users-details-users.email-Email')).toBeVisible();
});
});
test.describe('actions schema settings', () => {

View File

@ -1060,3 +1060,271 @@ export const tableListDetailsGridCardWithUsers = {
},
keepUid: true,
};
export const detailBlockWithLinkageRule = {
pageSchema: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Page',
'x-app-version': '1.0.0-alpha.10',
properties: {
yww8wuk4e6y: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Grid',
'x-initializer': 'page:addBlock',
'x-app-version': '1.0.0-alpha.10',
properties: {
d07v0epwwvk: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Grid.Row',
'x-app-version': '1.0.0-alpha.10',
properties: {
rp4u5qpr8ez: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Grid.Col',
'x-app-version': '1.0.0-alpha.10',
properties: {
'9mqhyap0ls1': {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-acl-action': 'users:view',
'x-decorator': 'DetailsBlockProvider',
'x-use-decorator-props': 'useDetailsWithPaginationDecoratorProps',
'x-decorator-props': {
dataSource: 'main',
collection: 'users',
readPretty: true,
action: 'list',
params: {
pageSize: 1,
},
},
'x-toolbar': 'BlockSchemaToolbar',
'x-settings': 'blockSettings:detailsWithPagination',
'x-component': 'CardItem',
'x-app-version': '1.0.0-alpha.10',
properties: {
'2lz9u3g81rl': {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Details',
'x-read-pretty': true,
'x-use-component-props': 'useDetailsWithPaginationProps',
'x-app-version': '1.0.0-alpha.10',
properties: {
s9ea5o8cj8w: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-initializer': 'details:configureActions',
'x-component': 'ActionBar',
'x-component-props': {
style: {
marginBottom: 24,
},
},
'x-app-version': '1.0.0-alpha.10',
'x-uid': 'ysmy9ooyviq',
'x-async': false,
'x-index': 1,
},
grid: {
'x-uid': '4qe5inwtjq9',
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Grid',
'x-initializer': 'details:configureFields',
'x-app-version': '1.0.0-alpha.10',
'x-linkage-rules': [
{
condition: {
$and: [
{
username: {
$includes: 'nocobase',
},
},
],
},
actions: [
{
targetFields: ['email'],
operator: 'none',
},
],
},
],
properties: {
fuq132swnbk: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Grid.Row',
'x-app-version': '1.0.0-alpha.10',
properties: {
bpajop3lve7: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Grid.Col',
'x-app-version': '1.0.0-alpha.10',
properties: {
nickname: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'string',
'x-toolbar': 'FormItemSchemaToolbar',
'x-settings': 'fieldSettings:FormItem',
'x-component': 'CollectionField',
'x-decorator': 'FormItem',
'x-collection-field': 'users.nickname',
'x-component-props': {},
'x-app-version': '1.0.0-alpha.10',
'x-uid': 'zww3rhl5gd9',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'qm681tg8gpa',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'lae2aq0m2x4',
'x-async': false,
'x-index': 1,
},
ztf9sdine5o: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Grid.Row',
'x-app-version': '1.0.0-alpha.10',
properties: {
aodkupx1hh2: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Grid.Col',
'x-app-version': '1.0.0-alpha.10',
properties: {
username: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'string',
'x-toolbar': 'FormItemSchemaToolbar',
'x-settings': 'fieldSettings:FormItem',
'x-component': 'CollectionField',
'x-decorator': 'FormItem',
'x-collection-field': 'users.username',
'x-component-props': {},
'x-app-version': '1.0.0-alpha.10',
'x-uid': 'n72gcozfvos',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'fn8r9dxds5b',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'gocs8rfidyr',
'x-async': false,
'x-index': 2,
},
cfrvhjohq80: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Grid.Row',
'x-app-version': '1.0.0-alpha.10',
properties: {
l2ywhliyphy: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Grid.Col',
'x-app-version': '1.0.0-alpha.10',
properties: {
email: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'string',
'x-toolbar': 'FormItemSchemaToolbar',
'x-settings': 'fieldSettings:FormItem',
'x-component': 'CollectionField',
'x-decorator': 'FormItem',
'x-collection-field': 'users.email',
'x-component-props': {},
'x-app-version': '1.0.0-alpha.10',
'x-uid': 'sp2v1hu1q82',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'nkvczy7p4wt',
'x-async': false,
'x-index': 1,
},
},
'x-uid': '740moxzkbnw',
'x-async': false,
'x-index': 3,
},
},
'x-async': false,
'x-index': 2,
},
pagination: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Pagination',
'x-use-component-props': 'useDetailsPaginationProps',
'x-app-version': '1.0.0-alpha.10',
'x-uid': 'mz4fbexxkj1',
'x-async': false,
'x-index': 3,
},
},
'x-uid': 'ymkygy5gq36',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'le8ml68mhbc',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'o5bsy38grwy',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'i5dnts4va3e',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'vxpirluqi4j',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'bygf7rii5pb',
'x-async': true,
'x-index': 1,
},
};

View File

@ -27,6 +27,7 @@ import {
oneTableWithRoles,
oneTableWithUpdateRecord,
twoTableWithAuthorAndBooks,
oneTableWithColumnFixed,
} from './templatesOfBug';
test.describe('table block schema settings', () => {
@ -977,6 +978,29 @@ test.describe('table column schema settings', () => {
await page.getByTestId('select-object-multiple').click();
await expect(page.getByRole('option', { name: record1.singleLineText, exact: true })).toBeVisible();
});
test('fixed column', async ({ page, mockPage }) => {
const nocoPage = await mockPage(oneTableWithColumnFixed).waitForInit();
await nocoPage.goto();
await expect(page.getByRole('button', { name: 'Roles' })).toBeVisible();
const element = await page.getByRole('button', { name: 'Roles' });
const hasClassName = await element.evaluate((el) =>
el.parentElement.parentElement.className.includes('ant-table-cell-fix-left'),
);
await expect(hasClassName).toBe(true);
//取消固定
await page.getByRole('button', { name: 'Roles' }).hover();
await page
.getByRole('button', { name: 'designer-schema-settings-TableV2.Column-fieldSettings:TableColumn-users' })
.hover();
await page.getByTestId('schema-settings-menu').getByText('FixedLeft fixed').click();
await page.getByText('Not fixed').click();
const hasClassName1 = await element.evaluate((el) =>
el.parentElement.parentElement.className.includes('ant-table-cell-fix-left'),
);
await expect(hasClassName1).toBe(false);
});
});
async function showSettingsMenu(page) {

View File

@ -2871,3 +2871,652 @@ export const oneTableWithInheritFields = {
'x-index': 1,
},
};
export const oneTableWithColumnFixed = {
pageSchema: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Page',
'x-app-version': '1.0.0-alpha.10',
properties: {
yww8wuk4e6y: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Grid',
'x-initializer': 'page:addBlock',
'x-app-version': '1.0.0-alpha.10',
properties: {
gtnfdxyqpi0: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Grid.Row',
'x-app-version': '1.0.0-alpha.10',
properties: {
'9ba8flxjeca': {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Grid.Col',
'x-app-version': '1.0.0-alpha.10',
properties: {
m3wh5fnv3vp: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-decorator': 'TableBlockProvider',
'x-acl-action': 'users:list',
'x-use-decorator-props': 'useTableBlockDecoratorProps',
'x-decorator-props': {
collection: 'users',
dataSource: 'main',
action: 'list',
params: {
pageSize: 20,
},
rowKey: 'id',
showIndex: true,
dragSort: false,
},
'x-toolbar': 'BlockSchemaToolbar',
'x-settings': 'blockSettings:table',
'x-component': 'CardItem',
'x-filter-targets': [],
'x-app-version': '1.0.0-alpha.10',
properties: {
actions: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-initializer': 'table:configureActions',
'x-component': 'ActionBar',
'x-component-props': {
style: {
marginBottom: 'var(--nb-spacing)',
},
},
'x-app-version': '1.0.0-alpha.10',
'x-uid': 'n2y7ou2p2wa',
'x-async': false,
'x-index': 1,
},
qk5g79umr0x: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'array',
'x-initializer': 'table:configureColumns',
'x-component': 'TableV2',
'x-use-component-props': 'useTableBlockProps',
'x-component-props': {
rowKey: 'id',
rowSelection: {
type: 'checkbox',
},
},
'x-app-version': '1.0.0-alpha.10',
properties: {
actions: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
title: '{{ t("Actions") }}',
'x-action-column': 'actions',
'x-decorator': 'TableV2.Column.ActionBar',
'x-component': 'TableV2.Column',
'x-designer': 'TableV2.ActionColumnDesigner',
'x-initializer': 'table:configureItemActions',
'x-app-version': '1.0.0-alpha.10',
properties: {
'8q96u8n4zk6': {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-decorator': 'DndContext',
'x-component': 'Space',
'x-component-props': {
split: '|',
},
'x-app-version': '1.0.0-alpha.10',
'x-uid': 'cexpfldzxtv',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'z8sbf2znupi',
'x-async': false,
'x-index': 1,
},
qs7ufydst6r: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-decorator': 'TableV2.Column.Decorator',
'x-toolbar': 'TableColumnSchemaToolbar',
'x-settings': 'fieldSettings:TableColumn',
'x-component': 'TableV2.Column',
'x-app-version': '1.0.0-alpha.10',
properties: {
id: {
_isJSONSchemaObject: true,
version: '2.0',
'x-collection-field': 'users.id',
'x-component': 'CollectionField',
'x-component-props': {},
'x-read-pretty': true,
'x-decorator': null,
'x-decorator-props': {
labelStyle: {
display: 'none',
},
},
'x-app-version': '1.0.0-alpha.10',
'x-uid': 'ofeje72uwbw',
'x-async': false,
'x-index': 1,
},
},
'x-uid': '1l0mk3srye1',
'x-async': false,
'x-index': 2,
},
yjpcdzbv6vt: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-decorator': 'TableV2.Column.Decorator',
'x-toolbar': 'TableColumnSchemaToolbar',
'x-settings': 'fieldSettings:TableColumn',
'x-component': 'TableV2.Column',
'x-app-version': '1.0.0-alpha.10',
properties: {
nickname: {
_isJSONSchemaObject: true,
version: '2.0',
'x-collection-field': 'users.nickname',
'x-component': 'CollectionField',
'x-component-props': {
ellipsis: true,
},
'x-read-pretty': true,
'x-decorator': null,
'x-decorator-props': {
labelStyle: {
display: 'none',
},
},
'x-app-version': '1.0.0-alpha.10',
'x-uid': '8cgwhhyntsx',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'plph8lny217',
'x-async': false,
'x-index': 3,
},
u7nx3h25r5x: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-decorator': 'TableV2.Column.Decorator',
'x-toolbar': 'TableColumnSchemaToolbar',
'x-settings': 'fieldSettings:TableColumn',
'x-component': 'TableV2.Column',
'x-app-version': '1.0.0-alpha.10',
properties: {
username: {
_isJSONSchemaObject: true,
version: '2.0',
'x-collection-field': 'users.username',
'x-component': 'CollectionField',
'x-component-props': {
ellipsis: true,
},
'x-read-pretty': true,
'x-decorator': null,
'x-decorator-props': {
labelStyle: {
display: 'none',
},
},
'x-app-version': '1.0.0-alpha.10',
'x-uid': 'hwsuo135bc9',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'jiq66delc99',
'x-async': false,
'x-index': 4,
},
y23i0bmugmj: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-decorator': 'TableV2.Column.Decorator',
'x-toolbar': 'TableColumnSchemaToolbar',
'x-settings': 'fieldSettings:TableColumn',
'x-component': 'TableV2.Column',
'x-app-version': '1.0.0-alpha.10',
properties: {
email: {
_isJSONSchemaObject: true,
version: '2.0',
'x-collection-field': 'users.email',
'x-component': 'CollectionField',
'x-component-props': {
ellipsis: true,
},
'x-read-pretty': true,
'x-decorator': null,
'x-decorator-props': {
labelStyle: {
display: 'none',
},
},
'x-app-version': '1.0.0-alpha.10',
'x-uid': 'y8sgqu6yhff',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'tnumvo1muqm',
'x-async': false,
'x-index': 5,
},
gkcqigb7ha6: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-decorator': 'TableV2.Column.Decorator',
'x-toolbar': 'TableColumnSchemaToolbar',
'x-settings': 'fieldSettings:TableColumn',
'x-component': 'TableV2.Column',
'x-app-version': '1.0.0-alpha.10',
properties: {
phone: {
_isJSONSchemaObject: true,
version: '2.0',
'x-collection-field': 'users.phone',
'x-component': 'CollectionField',
'x-component-props': {
ellipsis: true,
},
'x-read-pretty': true,
'x-decorator': null,
'x-decorator-props': {
labelStyle: {
display: 'none',
},
},
'x-app-version': '1.0.0-alpha.10',
'x-uid': 'vedpxu2h7al',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'cwo8brhj01b',
'x-async': false,
'x-index': 6,
},
f5llvgbzfjr: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-decorator': 'TableV2.Column.Decorator',
'x-toolbar': 'TableColumnSchemaToolbar',
'x-settings': 'fieldSettings:TableColumn',
'x-component': 'TableV2.Column',
'x-app-version': '1.0.0-alpha.10',
properties: {
password: {
_isJSONSchemaObject: true,
version: '2.0',
'x-collection-field': 'users.password',
'x-component': 'CollectionField',
'x-component-props': {},
'x-read-pretty': true,
'x-decorator': null,
'x-decorator-props': {
labelStyle: {
display: 'none',
},
},
'x-app-version': '1.0.0-alpha.10',
'x-uid': 'x9w416kum84',
'x-async': false,
'x-index': 1,
},
},
'x-uid': '9181v3qx77q',
'x-async': false,
'x-index': 7,
},
nxrbywda9he: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-decorator': 'TableV2.Column.Decorator',
'x-toolbar': 'TableColumnSchemaToolbar',
'x-settings': 'fieldSettings:TableColumn',
'x-component': 'TableV2.Column',
'x-app-version': '1.0.0-alpha.10',
properties: {
createdAt: {
_isJSONSchemaObject: true,
version: '2.0',
'x-collection-field': 'users.createdAt',
'x-component': 'CollectionField',
'x-component-props': {},
'x-read-pretty': true,
'x-decorator': null,
'x-decorator-props': {
labelStyle: {
display: 'none',
},
},
'x-app-version': '1.0.0-alpha.10',
'x-uid': 'kyeuhy1m8wf',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'd8n1jad6kbi',
'x-async': false,
'x-index': 8,
},
'9x44uvwxbz6': {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-decorator': 'TableV2.Column.Decorator',
'x-toolbar': 'TableColumnSchemaToolbar',
'x-settings': 'fieldSettings:TableColumn',
'x-component': 'TableV2.Column',
'x-app-version': '1.0.0-alpha.10',
properties: {
updatedAt: {
_isJSONSchemaObject: true,
version: '2.0',
'x-collection-field': 'users.updatedAt',
'x-component': 'CollectionField',
'x-component-props': {},
'x-read-pretty': true,
'x-decorator': null,
'x-decorator-props': {
labelStyle: {
display: 'none',
},
},
'x-app-version': '1.0.0-alpha.10',
'x-uid': 'cq9ly116acz',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'iophqq5njwx',
'x-async': false,
'x-index': 9,
},
k5l3ztsblxs: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-decorator': 'TableV2.Column.Decorator',
'x-toolbar': 'TableColumnSchemaToolbar',
'x-settings': 'fieldSettings:TableColumn',
'x-component': 'TableV2.Column',
'x-app-version': '1.0.0-alpha.10',
properties: {
createdBy: {
_isJSONSchemaObject: true,
version: '2.0',
'x-collection-field': 'users.createdBy',
'x-component': 'CollectionField',
'x-component-props': {
ellipsis: true,
},
'x-read-pretty': true,
'x-decorator': null,
'x-decorator-props': {
labelStyle: {
display: 'none',
},
},
'x-app-version': '1.0.0-alpha.10',
properties: {
viewer: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
title: '{{ t("View record") }}',
'x-component': 'RecordPicker.Viewer',
'x-component-props': {
className: 'nb-action-popup',
},
'x-app-version': '1.0.0-alpha.10',
properties: {
tabs: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Tabs',
'x-component-props': {},
'x-initializer': 'popup:addTab',
'x-app-version': '1.0.0-alpha.10',
properties: {
tab1: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
title: '{{t("Details")}}',
'x-component': 'Tabs.TabPane',
'x-designer': 'Tabs.Designer',
'x-component-props': {},
'x-app-version': '1.0.0-alpha.10',
properties: {
grid: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Grid',
'x-initializer': 'popup:common:addBlock',
'x-app-version': '1.0.0-alpha.10',
'x-uid': 'apisx51sp0v',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'fi0sgiq0j5z',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'egth9jt9vfh',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'wn5g6m4ujqu',
'x-async': false,
'x-index': 1,
},
},
'x-uid': '5ilkbnzuli2',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'eo2yfzk9140',
'x-async': false,
'x-index': 10,
},
qzsn17173e7: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-decorator': 'TableV2.Column.Decorator',
'x-toolbar': 'TableColumnSchemaToolbar',
'x-settings': 'fieldSettings:TableColumn',
'x-component': 'TableV2.Column',
'x-app-version': '1.0.0-alpha.10',
properties: {
updatedBy: {
_isJSONSchemaObject: true,
version: '2.0',
'x-collection-field': 'users.updatedBy',
'x-component': 'CollectionField',
'x-component-props': {
ellipsis: true,
},
'x-read-pretty': true,
'x-decorator': null,
'x-decorator-props': {
labelStyle: {
display: 'none',
},
},
'x-app-version': '1.0.0-alpha.10',
properties: {
viewer: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
title: '{{ t("View record") }}',
'x-component': 'RecordPicker.Viewer',
'x-component-props': {
className: 'nb-action-popup',
},
'x-app-version': '1.0.0-alpha.10',
properties: {
tabs: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Tabs',
'x-component-props': {},
'x-initializer': 'popup:addTab',
'x-app-version': '1.0.0-alpha.10',
properties: {
tab1: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
title: '{{t("Details")}}',
'x-component': 'Tabs.TabPane',
'x-designer': 'Tabs.Designer',
'x-component-props': {},
'x-app-version': '1.0.0-alpha.10',
properties: {
grid: {
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-component': 'Grid',
'x-initializer': 'popup:common:addBlock',
'x-app-version': '1.0.0-alpha.10',
'x-uid': '7p1cw61ik1a',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'ftv9oucokpk',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 't4xgz4j6qyr',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'emi1u3tte2z',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'g54j812hfq9',
'x-async': false,
'x-index': 1,
},
},
'x-uid': '1wudcamw562',
'x-async': false,
'x-index': 11,
},
'87nvcyc8blb': {
'x-uid': 'wlcan8llggi',
_isJSONSchemaObject: true,
version: '2.0',
type: 'void',
'x-decorator': 'TableV2.Column.Decorator',
'x-toolbar': 'TableColumnSchemaToolbar',
'x-settings': 'fieldSettings:TableColumn',
'x-component': 'TableV2.Column',
'x-app-version': '1.0.0-alpha.10',
'x-component-props': {
fixed: 'left',
},
properties: {
roles: {
_isJSONSchemaObject: true,
version: '2.0',
'x-collection-field': 'users.roles',
'x-component': 'CollectionField',
'x-component-props': {
fieldNames: {
value: 'name',
label: 'name',
},
ellipsis: true,
size: 'small',
},
'x-read-pretty': true,
'x-decorator': null,
'x-decorator-props': {
labelStyle: {
display: 'none',
},
},
'x-app-version': '1.0.0-alpha.10',
'x-uid': 'zt4te02lali',
'x-async': false,
'x-index': 1,
},
},
'x-async': false,
'x-index': 12,
},
},
'x-uid': 'b3q8ojj6utk',
'x-async': false,
'x-index': 2,
},
},
'x-uid': 'opeua2lp943',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'bmjq8wkrds6',
'x-async': false,
'x-index': 1,
},
},
'x-uid': '9cs52kf5con',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'vxpirluqi4j',
'x-async': false,
'x-index': 1,
},
},
'x-uid': 'bygf7rii5pb',
'x-async': true,
'x-index': 1,
},
};

View File

@ -197,6 +197,8 @@ test.describe('where to open a popup and what can be added to it', () => {
await expect(page.getByRole('menuitem', { name: 'ordered-list List right' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'ordered-list Grid Card right' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'Calendar' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'Gantt' })).toBeVisible();
await expect(page.getByRole('menuitem', { name: 'Kanban' })).toBeVisible();
await page.getByLabel('schema-initializer-Grid-popup:common:addBlock-general').hover();
await page.getByRole('menuitem', { name: 'Details' }).hover();