From 928b3515dcd1caea9a4454af323b14fedff2416d Mon Sep 17 00:00:00 2001 From: Fredrik Strand Oseberg Date: Wed, 7 Dec 2022 14:08:59 +0100 Subject: [PATCH] fix: update package json and remove empty exports (#2625) * Removes exports statements in e2e tests * Updates package.json to optionally use heroku url for e2e tests when running locally --- frontend/cypress/integration/feature/feature.spec.ts | 2 -- frontend/cypress/integration/groups/groups.spec.ts | 1 - frontend/cypress/integration/projects/access.spec.ts | 1 - frontend/cypress/integration/segments/segments.spec.ts | 1 - frontend/package.json | 2 +- 5 files changed, 1 insertion(+), 6 deletions(-) diff --git a/frontend/cypress/integration/feature/feature.spec.ts b/frontend/cypress/integration/feature/feature.spec.ts index ffed071fe8..3781a61ea7 100644 --- a/frontend/cypress/integration/feature/feature.spec.ts +++ b/frontend/cypress/integration/feature/feature.spec.ts @@ -1,7 +1,5 @@ /// -export {}; - const ENTERPRISE = Boolean(Cypress.env('ENTERPRISE')); const randomId = String(Math.random()).split('.')[1]; const featureToggleName = `unleash-e2e-${randomId}`; diff --git a/frontend/cypress/integration/groups/groups.spec.ts b/frontend/cypress/integration/groups/groups.spec.ts index efc9931f1c..1626ac8aeb 100644 --- a/frontend/cypress/integration/groups/groups.spec.ts +++ b/frontend/cypress/integration/groups/groups.spec.ts @@ -1,6 +1,5 @@ /// -export {}; const baseUrl = Cypress.config().baseUrl; const randomId = String(Math.random()).split('.')[1]; const groupName = `unleash-e2e-${randomId}`; diff --git a/frontend/cypress/integration/projects/access.spec.ts b/frontend/cypress/integration/projects/access.spec.ts index ec16c6f334..08c2f8df9e 100644 --- a/frontend/cypress/integration/projects/access.spec.ts +++ b/frontend/cypress/integration/projects/access.spec.ts @@ -10,7 +10,6 @@ import { PA_USERS_GROUPS_TITLE_ID, } from '../../../src/utils/testIds'; -export {}; const baseUrl = Cypress.config().baseUrl; const randomId = String(Math.random()).split('.')[1]; const groupAndProjectName = `group-e2e-${randomId}`; diff --git a/frontend/cypress/integration/segments/segments.spec.ts b/frontend/cypress/integration/segments/segments.spec.ts index 7dc3a54d3f..aa8b00ca97 100644 --- a/frontend/cypress/integration/segments/segments.spec.ts +++ b/frontend/cypress/integration/segments/segments.spec.ts @@ -1,6 +1,5 @@ /// -export {}; const randomId = String(Math.random()).split('.')[1]; const segmentName = `unleash-e2e-${randomId}`; diff --git a/frontend/package.json b/frontend/package.json index 30aa0a6da3..c5786f75c2 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -22,7 +22,7 @@ "fmt:check": "prettier src --check", "ts:check": "tsc", "e2e": "yarn run cypress open --config baseUrl='http://localhost:3000' --env AUTH_USER=admin,AUTH_PASSWORD=unleash4all", - "e2e:heroku": "yarn run cypress open --config baseUrl='http://localhost:3000' --env AUTH_USER=example@example.com", + "e2e:heroku": "yarn run cypress open --config baseUrl='https://unleash.herokuapp.com' --env AUTH_USER=admin,AUTH_PASSWORD=unleash4all", "prepare": "yarn run build" }, "devDependencies": {