Skip to content

Commit

Permalink
Desperate try with port 3000
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogasp committed Jan 29, 2025
1 parent 3628f85 commit b0e4c0d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig } from "cypress";

export default defineConfig({
e2e: {
baseUrl: "http://127.0.0.1:8080",
baseUrl: "http://127.0.0.1:3000",
},
});
6 changes: 3 additions & 3 deletions cypress/e2e/auth.cy.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export const login = (username: string, password: string) => {
// https://docs.cypress.io/api/commands/session#Cross-domain-sessions
cy.visit("http://127.0.0.1:8080"); // do not remove it
cy.visit("http://127.0.0.1:3000"); // do not remove it

cy.session(username, () => {
cy.visit("http://127.0.0.1:8080/signin");
cy.visit("http://127.0.0.1:3000/signin");
cy.origin(
"https://iam-dev.cloud.cnaf.infn.it",
{ args: { username, password } },
Expand All @@ -15,7 +15,7 @@ export const login = (username: string, password: string) => {
cy.get("#login-submit").click();
}
);
cy.visit("http://127.0.0.1:8080");
cy.visit("http://127.0.0.1:3000");
},
{
validate() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"scripts": {
"dev": "next dev -p 8080",
"build": "next build",
"start": "PORT=8080 HOSTNAME=127.0.0.1 node .next/standalone/server.js",
"start": "PORT=3000 HOSTNAME=127.0.0.1 node .next/standalone/server.js",
"test": "jest",
"lint": "tsc --project ./tsconfig.json --noEmit && eslint . --ext ts,tsx,js --report-unused-disable-directives --max-warnings 0"
},
Expand Down

0 comments on commit b0e4c0d

Please sign in to comment.