mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
* add coverage to PUI * fix testing command * always do all steps * fix test assumptions * add test for serving and logging into pui from django / cui tech stack * fix up coverage * fix intentation * remove paralell flags * remove coverage finish step * remove flag * change names * add full clickdown test * more tests * more tests * sprinkle in some timeouts * try using admin * disable page 1 tests for now * remove additional tests for now * only build sourcemaps if coverage is enabled * fix sourcemap assumption * add more tests * fix test * Update package.json * move tests to seperate file * rename test files * move defaults to seperate file * centralise user creds * lower migration level * re-add page 1 * rename and split tests * split out problematic test * Add thumbnail building step * remove unneded steps * fix filename * add more logging * add sourounding table * add missing tabs * wait instead of click * fix test * split tests out more * disable test for stock * tes part sub-pages * split tests more * add company tests * more sales testing * split parts testing * Add test for settings + admin center
29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
import { expect, test } from './baseFixtures.js';
|
|
import { classicUrl, user } from './defaults.js';
|
|
|
|
test('PUI - Basic test via django', async ({ page }) => {
|
|
await page.goto(`${classicUrl}/platform/`);
|
|
await expect(page).toHaveTitle('InvenTree Demo Server');
|
|
await page.waitForURL('**/platform/');
|
|
await page.getByLabel('username').fill(user.username);
|
|
await page.getByLabel('password').fill(user.password);
|
|
await page.getByRole('button', { name: 'Log in' }).click();
|
|
await page.waitForURL('**/platform/*');
|
|
await page.goto(`${classicUrl}/platform/`);
|
|
|
|
await expect(page).toHaveTitle('InvenTree Demo Server');
|
|
});
|
|
|
|
test('PUI - Basic test', async ({ page }) => {
|
|
await page.goto('./platform/');
|
|
await expect(page).toHaveTitle('InvenTree');
|
|
await page.waitForURL('**/platform/');
|
|
await page.getByLabel('username').fill(user.username);
|
|
await page.getByLabel('password').fill(user.password);
|
|
await page.getByRole('button', { name: 'Log in' }).click();
|
|
await page.waitForURL('**/platform');
|
|
await page.goto('./platform/');
|
|
|
|
await expect(page).toHaveTitle('InvenTree');
|
|
});
|