|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
import { test } from '@playwright/test'; |
|
|
|
|
import { DashboardPage } from '../../../pages/Dashboard'; |
|
|
|
|
import setup, { unsetup } from '../../../setup'; |
|
|
|
|
import setup, { NcContext, unsetup } from '../../../setup'; |
|
|
|
|
import { ToolbarPage } from '../../../pages/Dashboard/common/Toolbar'; |
|
|
|
|
import { LoginPage } from '../../../pages/LoginPage'; |
|
|
|
|
import { getDefaultPwd } from '../../../tests/utils/general'; |
|
|
|
@ -9,7 +9,7 @@ import { getDefaultPwd } from '../../../tests/utils/general';
|
|
|
|
|
test.describe('Shared base', () => { |
|
|
|
|
let dashboard: DashboardPage; |
|
|
|
|
let toolbar: ToolbarPage; |
|
|
|
|
let context: any; |
|
|
|
|
let context: NcContext; |
|
|
|
|
let loginPage: LoginPage; |
|
|
|
|
|
|
|
|
|
async function roleTest(role: string) { |
|
|
|
@ -83,7 +83,13 @@ test.describe('Shared base', () => {
|
|
|
|
|
withoutPrefix: true, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// await dashboard.treeView.openProject({ title: context.project.title });
|
|
|
|
|
await dashboard.rootPage.waitForTimeout(1000); |
|
|
|
|
|
|
|
|
|
await dashboard.grid.workspaceMenu.switchWorkspace({ |
|
|
|
|
workspaceTitle: context.workspace.title, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
await dashboard.treeView.openProject({ title: context.project.title, context }); |
|
|
|
|
await dashboard.treeView.openTable({ title: 'Country' }); |
|
|
|
|
url = await dashboard.grid.topbar.getSharedBaseUrl({ role: 'viewer', enableSharedBase: false }); |
|
|
|
|
|
|
|
|
|