From 1ecbf1cc1ad055ac55ef0084c9dd9df3de4cd021 Mon Sep 17 00:00:00 2001 From: Suzanne Vogt Date: Thu, 2 Nov 2023 21:28:34 -0400 Subject: [PATCH] Minor alteration to test check. --- cypress/e2e/organization_admin/info.test.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/organization_admin/info.test.ts b/cypress/e2e/organization_admin/info.test.ts index 45cf6bdeb..3dd4fa2c6 100644 --- a/cypress/e2e/organization_admin/info.test.ts +++ b/cypress/e2e/organization_admin/info.test.ts @@ -181,10 +181,13 @@ describe('ACCEPTANCE: ORGANIZATION_ADMIN | INFO', () => { it.only('can see info when using capitalized identifier URL subdirectory', () => { cy.visit('/providers/DATACITE'); cy.url().should('include', '/providers/DATACITE').then(() => { - - cy.wait(waitTime3) + // Increase timeout because requests that return these totals can be slow. + cy.wait(waitTime3*2) // Info page should be populated with non-zero graph data. - cy.get('.graphs > a').contains(/^[0-9]+$/).should('exist') + // Iterate over each element to test. + cy.get('.graphs > a').each(($el, index, $list) => { + expect($el.text()).to.match(/^[0-9]+$/) + }) }); }); }); \ No newline at end of file