mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-22 15:56:14 +00:00
[bug] Playwright fixes (#9933)
* Fixes for playwright testing - Ensure cookies are completely cleaned between sessions - Fix base URL based on vite command - Fix samesite cookie mode - Prevent /static/ files being served by web server on :8000 * Remove gunicorn option * Readjust base URL * Simplify doCachedLogin * Fix logic func * Revert webserver cmd * Set base URL in playwrightconfig file * Fix URL checks * Fix URL definitions * adjust playwright base URL * Tweak for URL helper * Further login tweaks * Tweak test * wait for API before starting tests * Handle error * Adjust login functions * Don't use gunicorn - But still use the webserver to serve static files in CI * Enhanced login functions * Tweak login tests * Fix broken test * Flipped the flippies
This commit is contained in:
1 parent
2ce7e225ad
commit
3f14ae3f7d
11 files changed
+169
-87
No files matched your search
@@ -1,10 +1,11 @@
|
||||
export const classicUrl = 'http://127.0.0.1:8000';
|
||||
export const webUrl = '/web';
|
||||
|
||||
export const apiUrl = `${classicUrl}/api`;
|
||||
export const baseUrl = './web';
|
||||
export const loginUrl = `${baseUrl}/login`;
|
||||
export const logoutUrl = `${baseUrl}/logout`;
|
||||
export const homeUrl = `${baseUrl}/home`;
|
||||
// Note: API requests are handled by the backend server
|
||||
export const apiUrl = 'http://localhost:8000/api/';
|
||||
|
||||
export const homeUrl = `${webUrl}/home`;
|
||||
export const loginUrl = `${webUrl}/login`;
|
||||
export const logoutUrl = `${webUrl}/logout`;
|
||||
|
||||
export const user = {
|
||||
name: 'Ally Access',
|
||||
|
||||
Reference in new issue
Block a user