Loading cypress/e2e/user-journeys.cy.ts +14 −17 Original line number Diff line number Diff line Loading @@ -7,9 +7,8 @@ describe('user journey', () => { cy.visit(window.location.origin); }) context('user-not-logged-in', () => { context.only('user-not-logged-in', () => { it('checks services portal', () => { cy.log(Cypress.env("username")); cy.navigateToServices(':nth-child(2) > .container > .row > :nth-child(2) > a > .btn'); }); it('checks services portal via image', () => { Loading Loading @@ -54,43 +53,41 @@ describe('user journey', () => { beforeEach(() => { cy.get('[id="contact"]').scrollIntoView().should('be.visible'); }) it('checks ETSI SDG OpenSlice Link', () => { cy.get('.ng-star-inserted > :nth-child(1) > .text-white').click(); cy.origin('https://osl.etsi.org/', () => { it('checks OpenSlice by ETSI Portal Link', () => { cy.get(':nth-child(1) > .osl-anchor').click(); cy.location("pathname").should("equal", "/"); }); }); it("checks OpenSLice by ETSI wiki", () => { cy.get(':nth-child(3) > .text-white').click(); it("checks OpenSlice by ETSI wiki", () => { cy.get(':nth-child(2) > .osl-anchor').click(); cy.origin('https://osl.etsi.org/', () => { cy.location("pathname").should("equal", "/documentation/latest/"); }); }); it('checks <our wiki> link', () => { cy.get('.col-12 > :nth-child(3) > .font-weight-bold').click(); it('checks ETSI SDG for OpenSlice link', () => { cy.get(':nth-child(3) > .osl-anchor').click(); cy.origin('https://osl.etsi.org/', () => { cy.location("pathname").should("equal", "/documentation/latest/"); cy.location("pathname").should("equal", "/"); }); }); it('checks linkedin link', () => { cy.get(':nth-child(2) > .ng-star-inserted > :nth-child(1)').click(); cy.get(':nth-child(1) > a > .button-outline').click(); cy.origin('https://www.linkedin.com/company/openslice', ()=> { cy.location("pathname").should("equal", "/company/openslice"); }); }); it('checks slack link', () => { cy.get(':nth-child(2) > .ng-star-inserted > :nth-child(2)').click(); cy.get(':nth-child(2) > a > .button-outline').click(); cy.origin('https://openslice.slack.com/', () => { cy.location("pathname").should("equal", "/"); cy.location("pathname").should("contain", "/join"); }); }); //twitter test cannot pass, depends on user login it('checks twitter link', () => { cy.get(':nth-child(2) > .ng-star-inserted > :nth-child(3)').click(); cy.get(':nth-child(3) > a > .button-outline').click(); cy.origin('https://x.com/OpensliceOSS', () => { cy.location("pathname").should("satisfy", (url) => { return url === '/OpensliceOSS' || url === '/i/flow/login'; Loading Loading
cypress/e2e/user-journeys.cy.ts +14 −17 Original line number Diff line number Diff line Loading @@ -7,9 +7,8 @@ describe('user journey', () => { cy.visit(window.location.origin); }) context('user-not-logged-in', () => { context.only('user-not-logged-in', () => { it('checks services portal', () => { cy.log(Cypress.env("username")); cy.navigateToServices(':nth-child(2) > .container > .row > :nth-child(2) > a > .btn'); }); it('checks services portal via image', () => { Loading Loading @@ -54,43 +53,41 @@ describe('user journey', () => { beforeEach(() => { cy.get('[id="contact"]').scrollIntoView().should('be.visible'); }) it('checks ETSI SDG OpenSlice Link', () => { cy.get('.ng-star-inserted > :nth-child(1) > .text-white').click(); cy.origin('https://osl.etsi.org/', () => { it('checks OpenSlice by ETSI Portal Link', () => { cy.get(':nth-child(1) > .osl-anchor').click(); cy.location("pathname").should("equal", "/"); }); }); it("checks OpenSLice by ETSI wiki", () => { cy.get(':nth-child(3) > .text-white').click(); it("checks OpenSlice by ETSI wiki", () => { cy.get(':nth-child(2) > .osl-anchor').click(); cy.origin('https://osl.etsi.org/', () => { cy.location("pathname").should("equal", "/documentation/latest/"); }); }); it('checks <our wiki> link', () => { cy.get('.col-12 > :nth-child(3) > .font-weight-bold').click(); it('checks ETSI SDG for OpenSlice link', () => { cy.get(':nth-child(3) > .osl-anchor').click(); cy.origin('https://osl.etsi.org/', () => { cy.location("pathname").should("equal", "/documentation/latest/"); cy.location("pathname").should("equal", "/"); }); }); it('checks linkedin link', () => { cy.get(':nth-child(2) > .ng-star-inserted > :nth-child(1)').click(); cy.get(':nth-child(1) > a > .button-outline').click(); cy.origin('https://www.linkedin.com/company/openslice', ()=> { cy.location("pathname").should("equal", "/company/openslice"); }); }); it('checks slack link', () => { cy.get(':nth-child(2) > .ng-star-inserted > :nth-child(2)').click(); cy.get(':nth-child(2) > a > .button-outline').click(); cy.origin('https://openslice.slack.com/', () => { cy.location("pathname").should("equal", "/"); cy.location("pathname").should("contain", "/join"); }); }); //twitter test cannot pass, depends on user login it('checks twitter link', () => { cy.get(':nth-child(2) > .ng-star-inserted > :nth-child(3)').click(); cy.get(':nth-child(3) > a > .button-outline').click(); cy.origin('https://x.com/OpensliceOSS', () => { cy.location("pathname").should("satisfy", (url) => { return url === '/OpensliceOSS' || url === '/i/flow/login'; Loading