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.
25 lines
899 B
25 lines
899 B
import { test } from '@playwright/test'; |
|
import { AccountPage } from '../../pages/Account'; |
|
import { AccountTokenPage } from '../../pages/Account/Token'; |
|
import setup from '../../setup'; |
|
|
|
test.describe('User roles', () => { |
|
let accountTokenPage: AccountTokenPage; |
|
let accountPage: AccountPage; |
|
// @ts-ignore |
|
let context: any; |
|
|
|
test.beforeEach(async ({ page }) => { |
|
context = await setup({ page, isEmptyProject: true }); |
|
accountPage = new AccountPage(page); |
|
accountTokenPage = new AccountTokenPage(accountPage); |
|
}); |
|
|
|
test('Create and Delete token', async () => { |
|
test.slow(); |
|
const parallelId = process.env.TEST_PARALLEL_INDEX ?? '0'; |
|
await accountTokenPage.goto(); |
|
await accountTokenPage.createToken({ description: `nc_test_${parallelId} test token` }); |
|
await accountTokenPage.deleteToken({ description: `nc_test_${parallelId} test token` }); |
|
}); |
|
});
|
|
|