mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
* Add new start page * [FR/P-UI] Home/Start page - widgets * load widgets dynamic * code cleanup * remove lodash * refactor and rename to WidgetLayout * Add CSS serving * removed unneeded complexity * clean up UI; switch to menu for controls * change signature * added hotkey * removed hover * removed dummy widget * Add translations * fix test * uses real data for getting started * adapted style for GettingStartedCard * added placeholder usage to GettingStartedCard
20 lines
678 B
TypeScript
20 lines
678 B
TypeScript
import { expect, test } from '@playwright/test';
|
|
|
|
test('Basic Platform UI test', async ({ page }) => {
|
|
await page.goto('./platform/');
|
|
await expect(page).toHaveTitle('InvenTree Demo Server');
|
|
await page.waitForURL('**/platform/');
|
|
await page.getByLabel('username').fill('allaccess');
|
|
await page.getByLabel('password').fill('nolimits');
|
|
await page.getByRole('button', { name: 'Log in' }).click();
|
|
await page.waitForURL('**/platform/home');
|
|
await page.goto('./platform/');
|
|
|
|
await expect(page).toHaveTitle('InvenTree Demo Server');
|
|
await expect(
|
|
page.getByRole('heading', {
|
|
name: 'Welcome to your Dashboard, Ally Access'
|
|
})
|
|
).toBeVisible();
|
|
});
|