mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.1 KiB
29 lines
1.1 KiB
import { test } from '@playwright/test'; |
|
import { AccountPage } from '../../pages/Account'; |
|
import setup from '../../setup'; |
|
import { AccountLicensePage } from '../../pages/Account/License'; |
|
import { DashboardPage } from '../../pages/Dashboard'; |
|
|
|
test.describe('Enterprise License', () => { |
|
// @ts-ignore |
|
let dashboard: DashboardPage; |
|
// @ts-ignore |
|
let accountLicensePage: AccountLicensePage, accountPage: AccountPage, context: any; |
|
|
|
test.beforeEach(async ({ page }) => { |
|
context = await setup({ page, isEmptyProject: true }); |
|
accountPage = new AccountPage(page); |
|
accountLicensePage = new AccountLicensePage(accountPage); |
|
dashboard = new DashboardPage(page, context.project); |
|
}); |
|
|
|
test('Update license key & verify if enterprise features enabled', async () => { |
|
test.slow(); |
|
await accountLicensePage.goto(); |
|
await accountLicensePage.saveLicenseKey('1234567890'); |
|
|
|
await dashboard.goto(); |
|
// presence of snowflake icon indicates enterprise features are enabled |
|
await dashboard.treeView.quickImport({ title: 'Snowflake' }); |
|
}); |
|
});
|
|
|