|
|
|
@ -111,6 +111,7 @@ test.describe.serial('Test table', () => {
|
|
|
|
|
parentId: tables[0].id, |
|
|
|
|
childId: tables[1].id, |
|
|
|
|
type: 'hm', |
|
|
|
|
view_id: tables[0].views[0].id, |
|
|
|
|
}); |
|
|
|
|
await api.dbTableColumn.create(tables[1].id, { |
|
|
|
|
uidt: UITypes.Links, |
|
|
|
@ -119,6 +120,7 @@ test.describe.serial('Test table', () => {
|
|
|
|
|
parentId: tables[1].id, |
|
|
|
|
childId: tables[2].id, |
|
|
|
|
type: 'hm', |
|
|
|
|
view_id: tables[1].views[0].id, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// TableA <mm> TableD <mm> TableE
|
|
|
|
@ -129,6 +131,7 @@ test.describe.serial('Test table', () => {
|
|
|
|
|
parentId: tables[0].id, |
|
|
|
|
childId: tables[3].id, |
|
|
|
|
type: 'mm', |
|
|
|
|
view_id: tables[0].views[0].id, |
|
|
|
|
}); |
|
|
|
|
await api.dbTableColumn.create(tables[3].id, { |
|
|
|
|
uidt: UITypes.Links, |
|
|
|
@ -137,6 +140,7 @@ test.describe.serial('Test table', () => {
|
|
|
|
|
parentId: tables[3].id, |
|
|
|
|
childId: tables[4].id, |
|
|
|
|
type: 'mm', |
|
|
|
|
view_id: tables[3].views[0].id, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// TableA <hm> TableA : self relation
|
|
|
|
@ -147,6 +151,7 @@ test.describe.serial('Test table', () => {
|
|
|
|
|
parentId: tables[0].id, |
|
|
|
|
childId: tables[0].id, |
|
|
|
|
type: 'hm', |
|
|
|
|
view_id: tables[0].views[0].id, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// TableA <mm> TableA : self relation
|
|
|
|
@ -157,6 +162,7 @@ test.describe.serial('Test table', () => {
|
|
|
|
|
parentId: tables[0].id, |
|
|
|
|
childId: tables[0].id, |
|
|
|
|
type: 'mm', |
|
|
|
|
view_id: tables[0].views[0].id, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// Add links
|
|
|
|
@ -212,6 +218,33 @@ test.describe.serial('Test table', () => {
|
|
|
|
|
|
|
|
|
|
// refresh page
|
|
|
|
|
await page.reload(); |
|
|
|
|
|
|
|
|
|
const hiddenLinksTableColumns = [ |
|
|
|
|
{ |
|
|
|
|
tableName: 'Table1', |
|
|
|
|
columns: ['Table0'], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
tableName: 'Table2', |
|
|
|
|
columns: ['Table1'], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
tableName: 'Table3', |
|
|
|
|
columns: ['Table0s'], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
tableName: 'Table4', |
|
|
|
|
columns: ['Table3s'], |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
// Unhide links columns
|
|
|
|
|
for (const table of hiddenLinksTableColumns) { |
|
|
|
|
await dashboard.treeView.openTable({ title: table.tableName }); |
|
|
|
|
for (const column of table.columns) { |
|
|
|
|
await dashboard.grid.toolbar.fields.toggle({ title: column, isLocallySaved: false, checked: true }); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
test.afterEach(async () => { |
|
|
|
|