2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

Implement URL redirect for PUI (#6872)

* Implement URL redirect for PUI

- Return from login page to redirect URL
- Return from auth check to redirect URL

* fix PUI test assumption

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
Oliver
2024-03-28 06:56:02 +11:00
committed by GitHub
parent bc77b2eb5f
commit 0be741562d
6 changed files with 19 additions and 11 deletions

View File

@ -7,7 +7,7 @@ test('Basic Platform UI test', async ({ page }) => {
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.waitForURL('**/platform');
await page.goto('./platform/');
await expect(page).toHaveTitle('InvenTree Demo Server');