Changeset View
Changeset View
Standalone View
Standalone View
cypress/integration/origin-browse.spec.js
Show All 29 Lines | cy.get('#swh-browse-snapshot-branches-nav-link') | ||||
.should('have.class', 'active'); | .should('have.class', 'active'); | ||||
}); | }); | ||||
it('should load releases view when clicking on the Releases tab', function() { | it('should load releases view when clicking on the Releases tab', function() { | ||||
cy.get('#swh-browse-snapshot-releases-nav-link') | cy.get('#swh-browse-snapshot-releases-nav-link') | ||||
.click(); | .click(); | ||||
cy.location('pathname') | cy.location('pathname') | ||||
.should('eq', this.Urls.browse_origin_releases()); | .should('eq', this.Urls.browse_snapshot_releases(this.origin[1].snapshot)); | ||||
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-snapshot-releases-nav-link') | cy.get('#swh-browse-snapshot-releases-nav-link') | ||||
.should('have.class', 'active'); | .should('have.class', 'active'); | ||||
}); | }); | ||||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |