diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 606e1c2f2..db4c41bd0 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -131,7 +131,7 @@ jobs: git-message: "chore(release): {version}" release-count: 10 cypress-run: - needs: detect-changes + needs: bump-version if: | always() && github.event_name == 'push' diff --git a/cypress.json b/cypress.json index 2059df39b..7048b9a6f 100644 --- a/cypress.json +++ b/cypress.json @@ -1,3 +1,3 @@ { - "baseUrl": "https://ibf-test.510.global" + "baseUrl": "http://localhost:4200" } \ No newline at end of file diff --git a/cypress/integration/IBF-dashboard/login.spec.js b/cypress/integration/IBF-dashboard/login.spec.js index ab696b19d..d79f62754 100644 --- a/cypress/integration/IBF-dashboard/login.spec.js +++ b/cypress/integration/IBF-dashboard/login.spec.js @@ -1,6 +1,5 @@ describe('Login Page', () => { beforeEach(() => { - // cy.setDashboard(); cy.server(); }); @@ -8,11 +7,15 @@ describe('Login Page', () => { it('lets the user log in', function () { cy.fixture('login').then((login) => { cy.visit(login.portal); + cy.get('input[name="email"]').type(login.email); cy.get('input[name="password"]').type(login.password); - cy.contains('Log In').click(); - cy.get('[data-cy=logged-in-as]').contains('Logged In As:'); + + cy.get('[data-cy=logged-in-as]').contains('Logged In As:') + cy.url().should("include", "/", () => { + expect(localStorage.getItem("jwt")).to.exist() + }) }); });