mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-26 08:40:52 +00:00
* Update mantine-datatable * Improve table hook * Fix for table name - Table names must be unique - Otherwise stored column data gets corrupted * Click through on table * Tweak unit tests
27 lines
998 B
TypeScript
27 lines
998 B
TypeScript
import { test } from '../baseFixtures.js';
|
|
import { loadTab, navigate } from '../helpers.js';
|
|
import { doCachedLogin } from '../login.js';
|
|
|
|
test('Core User/Group/Contact', async ({ browser }) => {
|
|
const page = await doCachedLogin(browser);
|
|
|
|
// groups
|
|
await navigate(page, '/core');
|
|
await page.getByText('System Overview', { exact: true }).first().click();
|
|
await loadTab(page, 'Groups');
|
|
await page.getByRole('cell', { name: 'all access' }).click();
|
|
await page.getByText('Group: all access', { exact: true }).click();
|
|
await page.getByLabel('breadcrumb-1-groups').click();
|
|
|
|
// users
|
|
await loadTab(page, 'Users');
|
|
await page.getByRole('cell', { name: 'admin', exact: true }).click();
|
|
await page.getByText('User: admin', { exact: true }).waitFor();
|
|
await page.getByLabel('User Details').waitFor();
|
|
await page.getByLabel('breadcrumb-1-users').click();
|
|
|
|
// contacts
|
|
await loadTab(page, 'Contacts');
|
|
await page.getByRole('cell', { name: 'Adrian Briggs' }).waitFor();
|
|
});
|