|
|
|
@ -36,8 +36,12 @@ test.describe('Meta sync', () => {
|
|
|
|
|
test('Meta sync', async () => { |
|
|
|
|
test.setTimeout(process.env.CI ? 100000 : 70000); |
|
|
|
|
|
|
|
|
|
await dashboard.baseView.tab_dataSources.click(); |
|
|
|
|
await dashboard.baseView.dataSources.openMetaSync({ rowIndex: 0 }); |
|
|
|
|
// await dashboard.baseView.tab_dataSources.click();
|
|
|
|
|
// await dashboard.baseView.dataSources.openMetaSync({ rowIndex: 0 });
|
|
|
|
|
|
|
|
|
|
await dashboard.treeView.baseSettings({ title: context.base.title }); |
|
|
|
|
await dashboard.settings.selectTab({ tab: 'dataSources' }); |
|
|
|
|
await dashboard.settings.dataSources.openMetaSync({ rowIndex: 0 }); |
|
|
|
|
|
|
|
|
|
await dbExec(`CREATE TABLE table1 (id INT NOT NULL, col1 INT NULL, PRIMARY KEY (id))`); |
|
|
|
|
await dbExec(`CREATE TABLE table2 (id INT NOT NULL, col1 INT NULL, PRIMARY KEY (id))`); |
|
|
|
@ -247,8 +251,9 @@ test.describe('Meta sync', () => {
|
|
|
|
|
`INSERT INTO table1 (id, col1, col2, col3, col4) VALUES (1,1,1,1,1), (2,2,2,2,2), (3,3,3,3,3), (4,4,4,4,4), (5,5,5,5,5), (6,6,6,6,6), (7,7,7,7,7), (8,8,8,8,8), (9,9,9,9,9);` |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
await dashboard.baseView.tab_dataSources.click(); |
|
|
|
|
await dashboard.baseView.dataSources.openMetaSync({ rowIndex: 0 }); |
|
|
|
|
await dashboard.treeView.baseSettings({ title: context.base.title }); |
|
|
|
|
await dashboard.settings.selectTab({ tab: 'dataSources' }); |
|
|
|
|
await dashboard.settings.dataSources.openMetaSync({ rowIndex: 0 }); |
|
|
|
|
|
|
|
|
|
await metaData.clickReload(); |
|
|
|
|
await metaData.sync(); |
|
|
|
|