diff --git a/cypress/e2e/collection-statistics.cy.ts b/cypress/e2e/collection-statistics.cy.ts index 4712f60dc12..3e5a465e398 100644 --- a/cypress/e2e/collection-statistics.cy.ts +++ b/cypress/e2e/collection-statistics.cy.ts @@ -29,7 +29,7 @@ describe('Collection Statistics Page', () => { // Verify / wait until "Total Visits" table's label is non-empty // (This table loads these labels asynchronously, so we want to wait for them before analyzing page) - cy.get('table[data-test="TotalVisits"] td[data-test="statistics-label"]').should('have.length.greaterThan', 0).contains(REGEX_MATCH_NON_EMPTY_TEXT); + cy.get('table[data-test="TotalVisits"] th[data-test="statistics-label"]').contains(REGEX_MATCH_NON_EMPTY_TEXT); // Analyze for accessibility issues testA11y('ds-collection-statistics-page'); diff --git a/cypress/e2e/community-statistics.cy.ts b/cypress/e2e/community-statistics.cy.ts index b202b1e4502..00e23a90b37 100644 --- a/cypress/e2e/community-statistics.cy.ts +++ b/cypress/e2e/community-statistics.cy.ts @@ -29,7 +29,7 @@ describe('Community Statistics Page', () => { // Verify / wait until "Total Visits" table's label is non-empty // (This table loads these labels asynchronously, so we want to wait for them before analyzing page) - cy.get('table[data-test="TotalVisits"] td[data-test="statistics-label"]').contains(REGEX_MATCH_NON_EMPTY_TEXT); + cy.get('table[data-test="TotalVisits"] th[data-test="statistics-label"]').contains(REGEX_MATCH_NON_EMPTY_TEXT); // Analyze for accessibility issues testA11y('ds-community-statistics-page'); diff --git a/cypress/e2e/homepage-statistics.cy.ts b/cypress/e2e/homepage-statistics.cy.ts index 7eb4635cdb9..0e0fca3c5bb 100644 --- a/cypress/e2e/homepage-statistics.cy.ts +++ b/cypress/e2e/homepage-statistics.cy.ts @@ -22,7 +22,7 @@ describe('Site Statistics Page', () => { // Verify / wait until "Total Visits" table's *last* label is non-empty // (This table loads these labels asynchronously, so we want to wait for them before analyzing page) - cy.get('table[data-test="TotalVisits"] td[data-test="statistics-label"]').last().contains(REGEX_MATCH_NON_EMPTY_TEXT); + cy.get('table[data-test="TotalVisits"] th[data-test="statistics-label"]').last().contains(REGEX_MATCH_NON_EMPTY_TEXT); // Wait an extra 500ms, just so all entries in Total Visits have loaded. cy.wait(500); diff --git a/src/app/statistics-page/statistics-table/statistics-table.component.html b/src/app/statistics-page/statistics-table/statistics-table.component.html index d6e78866fa7..9ea8ab2d03b 100644 --- a/src/app/statistics-page/statistics-table/statistics-table.component.html +++ b/src/app/statistics-page/statistics-table/statistics-table.component.html @@ -20,9 +20,9 @@

- + {{ getLabel(point) | async }} - + {{ point.values[header] }}