diff --git a/cypress/e2e/group2/myworkflows.ts b/cypress/e2e/group2/myworkflows.ts index 0df7d9935..14872666b 100644 --- a/cypress/e2e/group2/myworkflows.ts +++ b/cypress/e2e/group2/myworkflows.ts @@ -429,7 +429,7 @@ describe('Dockstore my workflows part 2', () => { gotoVersionsAndClickActions(); // Request DOI cy.fixture('versionWithDoi.json').then((json) => { - cy.intercept('GET', '/api/workflows/11/workflowVersions?limit=10&offset=0&sortCol=lastModified&sortOrder=desc&include=metrics', { + cy.intercept('GET', '/api/workflows/11/workflowVersions?limit=10&offset=0&sortOrder=desc&include=metrics', { body: json, statusCode: 200, }).as('getVersionWithDoi'); @@ -448,7 +448,7 @@ describe('Dockstore my workflows part 2', () => { // Export to ORCID cy.fixture('versionAfterOrcidExport.json').then((json) => { - cy.intercept('GET', '/api/workflows/11/workflowVersions?limit=10&offset=0&sortCol=lastModified&sortOrder=desc&include=metrics', { + cy.intercept('GET', '/api/workflows/11/workflowVersions?limit=10&offset=0&sortOrder=desc&include=metrics', { body: json, statusCode: 200, }).as('getVersionAfterOrcidExport'); diff --git a/cypress/e2e/group3/metrics.ts b/cypress/e2e/group3/metrics.ts index ba1b4d68a..677db2098 100644 --- a/cypress/e2e/group3/metrics.ts +++ b/cypress/e2e/group3/metrics.ts @@ -22,6 +22,13 @@ describe('Dockstore Metrics', () => { }).as('getMetrics'); }); cy.visit('/workflows/github.com/A/l:master'); + cy.fixture('versionWithMetrics.json').then((json) => { + cy.intercept('GET', '/api/workflows/published/11/workflowVersions?limit=10&offset=0&sortOrder=desc&include=metrics', { + body: json, + statusCode: 200, + }).as('getVersionWithMetrics'); + }); + cy.wait('@getVersionWithMetrics'); goToTab('Versions'); cy.get('[data-cy=execution-metrics-icon]').should('be.visible'); cy.get('[data-cy=validation-metrics-icon]').should('be.visible');