Skip to content
Snippets Groups Projects
Commit 56bce23a authored by Antoine Lambert's avatar Antoine Lambert
Browse files

browse/origin-search: Add CSS class to ease selection of visit statuses

parent 4762da3d
No related branches found
Tags v0.0.124
No related merge requests found
......@@ -77,8 +77,8 @@ describe('Test origin-search', function() {
.should('be.visible');
cy.contains('tr', archivedRepo.url)
.should('be.visible')
.children('#visit-status-origin-0')
.children('i')
.find('.swh-visit-status')
.find('i')
.should('have.class', 'fa-check')
.and('have.attr', 'title',
'Origin has at least one full visit by Software Heritage');
......
......@@ -38,7 +38,7 @@ function populateOriginSearchResultsTable(origins, offset) {
let tableRow = `<tr id="origin-${i}" class="swh-search-result-entry swh-tr-hover-highlight">`;
tableRow += `<td style="width: 120px;">${origin.type}</td>`;
tableRow += `<td style="white-space: nowrap;"><a href="${encodeURI(browseUrl)}">${encodeURI(origin.url)}</a></td>`;
tableRow += `<td id="visit-status-origin-${i}"><i title="Checking visit status" class="fa fa-refresh fa-spin"></i></td>`;
tableRow += `<td class="swh-visit-status" id="visit-status-origin-${i}"><i title="Checking visit status" class="fa fa-refresh fa-spin"></i></td>`;
tableRow += '</tr>';
table.append(tableRow);
// get async latest visit snapshot and update visit status icon
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment