Changeset View
Changeset View
Standalone View
Standalone View
cypress/integration/origin-browse.spec.js
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | describe('Test origin browse', function() { | ||||
it('should load code view when clicking on the Code tab', function() { | it('should load code view when clicking on the Code tab', function() { | ||||
cy.get('#swh-browse-origin-visits-nav-link') | cy.get('#swh-browse-origin-visits-nav-link') | ||||
.click(); | .click(); | ||||
cy.get('#swh-browse-code-nav-link') | cy.get('#swh-browse-code-nav-link') | ||||
.click(); | .click(); | ||||
cy.location('pathname') | // cy.location('pathname') | ||||
.should('eq', this.Urls.browse_origin_directory()); | // .should('eq', this.Urls.browse_directory()); | ||||
cy.location('search') | cy.location('search') | ||||
.should('eq', `?origin_url=${this.origin[1].url}`); | .should('eq', `?origin_url=${this.origin[1].url}`); | ||||
cy.get('#swh-browse-code-nav-link') | cy.get('#swh-browse-code-nav-link') | ||||
.should('have.class', 'active'); | .should('have.class', 'active'); | ||||
}); | }); | ||||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |