Changeset View
Changeset View
Standalone View
Standalone View
cypress/integration/origin-search.spec.js
Show First 20 Lines • Show All 221 Lines • ▼ Show 20 Lines | cy.get('.swh-search-icon') | ||||
.click(); | .click(); | ||||
cy.wait('@searchOrigin'); | cy.wait('@searchOrigin'); | ||||
cy.xhrShouldBeCalled('resolveSWHID', 0); | cy.xhrShouldBeCalled('resolveSWHID', 0); | ||||
cy.xhrShouldBeCalled('searchOrigin', 1); | cy.xhrShouldBeCalled('searchOrigin', 1); | ||||
}); | }); | ||||
it('should add query language support for staff users', function() { | |||||
cy.get('#swh-search-use-ql') | |||||
.should('not.exist'); | |||||
cy.adminLogin(); | |||||
cy.visit(url); | |||||
cy.get('#swh-search-use-ql') | |||||
.should('exist'); | |||||
}); | |||||
context('Test pagination', function() { | context('Test pagination', function() { | ||||
it('should not paginate if there are not many results', function() { | it('should not paginate if there are not many results', function() { | ||||
// Setup search | // Setup search | ||||
cy.get('#swh-search-origins-with-visit') | cy.get('#swh-search-origins-with-visit') | ||||
.uncheck({force: true}) | .uncheck({force: true}) | ||||
.get('#swh-filter-empty-visits') | .get('#swh-filter-empty-visits') | ||||
.uncheck({force: true}) | .uncheck({force: true}) | ||||
.then(() => { | .then(() => { | ||||
▲ Show 20 Lines • Show All 332 Lines • Show Last 20 Lines |