Changeset View
Changeset View
Standalone View
Standalone View
cypress/integration/origin-search.spec.js
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | cy.get('.swh-search-icon') | ||||
.click(); | .click(); | ||||
cy.get('#origin-search-results') | cy.get('#origin-search-results') | ||||
.should('be.visible'); | .should('be.visible'); | ||||
cy.contains('tr', origin.url) | cy.contains('tr', origin.url) | ||||
.should('be.visible') | .should('be.visible') | ||||
.find('.swh-visit-status') | .find('.swh-visit-status') | ||||
.find('i') | .find('i') | ||||
.should('have.class', 'fa-check') | .should('have.class', 'mdi-check-bold') | ||||
.and('have.attr', 'title', | .and('have.attr', 'title', | ||||
'Origin has at least one full visit by Software Heritage'); | 'Origin has at least one full visit by Software Heritage'); | ||||
}); | }); | ||||
it('should show not found message when no repo matches', function() { | it('should show not found message when no repo matches', function() { | ||||
searchShouldShowNotFound(nonExistentText, | searchShouldShowNotFound(nonExistentText, | ||||
'No origins matching the search criteria were found.'); | 'No origins matching the search criteria were found.'); | ||||
}); | }); | ||||
▲ Show 20 Lines • Show All 355 Lines • Show Last 20 Lines |