Client:Packages:Login: Some fixes

This commit is contained in:
Darya Umrikhina 2024-08-26 10:51:58 +04:00
parent 4517ebe901
commit b7a0551cc3
4 changed files with 16 additions and 944 deletions

View File

@ -12,7 +12,7 @@
"clean": "shx rm -rf .next",
"deploy": "shx --silent mkdir -p ../../../publish/web/login && shx --silent mkdir -p ../../../publish/web/login/.next && shx --silent mkdir -p ../../../publish/web/login/node_modules && shx --silent mkdir -p ../../../publish/web/login/.next/static && shx cp -r .next/standalone/node_modules/* ../../../publish/web/login/node_modules && shx cp -r .next/static/* ../../../publish/web/login/.next/static && shx cp -r .next/standalone/packages/login/.next/* ../../../publish/web/login/.next && shx cp -f server.prod.js ../../../publish/web/login/server.js",
"test:build": "node ./scripts/buildTranslations.js && TEST=true next build",
"test:start": "NODE_ENV=production TEST=true node server.js",
"test:start": "NODE_ENV=development TEST=true node server.js",
"test:e2e": "npx playwright test",
"test:e2e:ui": "npx playwright test --ui"
},

View File

@ -25,7 +25,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://127.0.0.1:3000',
baseURL: "http://127.0.0.1:5111",
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on-first-retry",
@ -71,7 +71,8 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: {
command: "yarn test:build && yarn test:start",
port: 5011,
command: "yarn test:start",
port: 5111,
timeout: 1000 * 60 * 5,
},
});

View File

@ -30,7 +30,7 @@ const next = require("next");
const dev = process.env.NODE_ENV === "development";
const port = 5011;
const port = 5111;
const hostname = "0.0.0.0";
// when using middleware `hostname` and `port` must be provided below

949
yarn.lock

File diff suppressed because it is too large Load Diff