refactor: modular navigation and custom api calls (#3613)
* Added customization files * Added custom API headers and changed logout mutation * Changed mutationLogout on authGuard * Renamed feature flags * Changed auto login to run after primary loading * Removed unused code * Added undefined on mutationfunctiontype to have options * Changed logout to mutationLogout * Return data on getConfig * Added custom wrapper * changed hasStore to be the constant by default * Added custom header * Added customParam feature flag * Fix routes and custom link and navigate to consider absolute and relative paths * Fixed regex on tabs search component * Added CustomNavigate * Added basename and ports and URLs config * [autofix.ci] apply automated fixes * Update config-constants.ts * Update index.tsx * Fixed path comparations --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
cb1a2f24b3
commit
06ea6c408b
54 changed files with 300 additions and 215 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { defineConfig, devices } from "@playwright/test";
|
||||
import * as dotenv from "dotenv";
|
||||
import path from "path";
|
||||
import { PORT } from "./src/customization/config-constants";
|
||||
dotenv.config();
|
||||
dotenv.config({ path: path.resolve(__dirname, "../../.env") });
|
||||
|
||||
|
|
@ -31,7 +32,7 @@ export default defineConfig({
|
|||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
||||
use: {
|
||||
/* Base URL to use in actions like `await page.goto('/')`. */
|
||||
baseURL: "http://localhost:3000/",
|
||||
baseURL: `http://localhost:${PORT || 3000}/`,
|
||||
|
||||
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
||||
trace: "on-first-retry",
|
||||
|
|
@ -85,7 +86,7 @@ export default defineConfig({
|
|||
},
|
||||
{
|
||||
command: "npm start",
|
||||
port: 3000,
|
||||
port: PORT || 3000,
|
||||
env: {
|
||||
VITE_PROXY_TARGET: "http://127.0.0.1:7860",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue