Skip to content

Commit

Permalink
chore(cypress): remove ENV validation to use baseUrl instead the whol…
Browse files Browse the repository at this point in the history
…e url
  • Loading branch information
willian-viana committed Sep 22, 2023
1 parent 898cae4 commit 917b12d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions cypress/api/navigation-api.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
const ENVIRONMENT = Cypress.env.NEXT_PUBLIC_FEATURE_ENV;

// const STAGING_URL = 'https://staging.globalforestwatch.org/'
const STAGING_URL = 'localhost:3000/';
// const PRODUCTION_URL = 'https://globalforestwatch.org/'

const HOMEPAGE = ENVIRONMENT === 'staging' ? STAGING_URL : STAGING_URL;

const goToDashboardFromHome = () => {
cy.visit(HOMEPAGE);
cy.visit('/');
cy.get('a.nav-link').contains('Dashboard').click();
};

Expand Down

0 comments on commit 917b12d

Please sign in to comment.