From baa4774c368864a919b4fe03ef79c6fd23ed8d90 Mon Sep 17 00:00:00 2001 From: nileshgulia1 Date: Tue, 11 May 2021 14:19:54 +0530 Subject: [PATCH] env to cypress --- cypress.json | 3 +++ cypress/support/index.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cypress.json b/cypress.json index 23eedae..98642d1 100644 --- a/cypress.json +++ b/cypress.json @@ -1,5 +1,8 @@ { "baseUrl": "http://localhost:3000", + "env": { + "API_PATH": "http://localhost:8080/energy" + }, "viewportWidth": 1280, "defaultCommandTimeout": 15000, "reporter": "junit", diff --git a/cypress/support/index.js b/cypress/support/index.js index 649a4f6..eb8efc5 100644 --- a/cypress/support/index.js +++ b/cypress/support/index.js @@ -33,7 +33,7 @@ export const setupBeforeEach = () => { path: 'cypress', }); cy.visit('/cypress/my-page'); - cy.waitForResourceToLoad('@navigation'); + //cy.waitForResourceToLoad('@navigation'); cy.waitForResourceToLoad('@breadcrumbs'); cy.waitForResourceToLoad('@actions'); cy.waitForResourceToLoad('@types');