Skip to content

Commit

Permalink
fix: propertly set up baseUrl when running on cli
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-cavazzi committed Jan 28, 2025
1 parent 8722485 commit aa689e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cypress-tests/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ import { TIMEOUTS } from "./config";

export default defineConfig({
e2e: {
baseUrl: process.env.BASE_URL || "https://dev.renku.ch",
// ? If we try to set up `baseUrl` here, process.env.BASE_URL isn't available
specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}",
setupNodeEvents(on, config) {
return { ...config, baseUrl: config.env.BASE_URL || "https://dev.renku.ch" };
},
},
env: {
BASE_URL: process.env.BASE_URL,
TEST_EMAIL: process.env.TEST_EMAIL,
TEST_PASSWORD: process.env.TEST_PASSWORD,
TEST_FIRST_NAME: process.env.TEST_FIRST_NAME,
Expand Down

0 comments on commit aa689e2

Please sign in to comment.