Skip to content

Commit

Permalink
Add drop down to display execution metrics by status (#1930)
Browse files Browse the repository at this point in the history
https://ucsc-cgl.atlassian.net/browse/SEAB-6199
* Display metrics by status

https://ucsc-cgl.atlassian.net/browse/SEAB-6205
* Hide ALL platform if there's only one platform
  • Loading branch information
kathy-t authored Feb 2, 2024
1 parent b786d89 commit 1c752ed
Show file tree
Hide file tree
Showing 8 changed files with 404 additions and 119 deletions.
15 changes: 15 additions & 0 deletions cypress/e2e/group3/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,25 @@ describe('Dockstore Metrics', () => {
cy.get('[data-cy=metrics-partner-dropdown]').click();
//change partner to AGC
cy.get('[data-cy=metrics-partner-options]').contains('AGC').click();
// Successful status is selected by default
cy.get('[data-cy=metrics-execution-status-dropdown]').should('contain', 'Successful');
cy.get('[data-cy=execution-metrics-table]').should('be.visible');
cy.get('[data-cy=execution-metrics-table]').contains('td', 'Not Available').should('not.exist');
cy.get('[data-cy=metrics-partner-dropdown]').should('contain', 'AGC');
cy.get('[data-cy=execution-metrics-total-executions-div]').should('contain', 4);
cy.get('[data-cy=validations-table]').should('not.exist');
// Change execution status to All Statuses
cy.get('[data-cy=metrics-execution-status-dropdown]').click();
cy.get('[data-cy=metrics-execution-status-options]').contains('All Statuses').click();
cy.get('[data-cy=metrics-execution-status-dropdown]').should('contain', 'All Statuses');
cy.get('[data-cy=execution-metrics-table]').should('be.visible');
cy.get('[data-cy=execution-metrics-table]').contains('td', 'Not Available').should('not.exist');
// Change execution status to FAILED_RUNTIME_INVALID
cy.get('[data-cy=metrics-execution-status-dropdown]').click();
cy.get('[data-cy=metrics-execution-status-options]').contains('Failed Runtime Invalid').click();
cy.get('[data-cy=metrics-execution-status-dropdown]').should('contain', 'Failed Runtime Invalid');
cy.get('[data-cy=execution-metrics-table]').should('exist');
cy.get('[data-cy=execution-metrics-table]').contains('td', 'Not Available').should('be.visible'); // There were no other metrics for the FAILED_RUNTIME_INVALID executions
});

it('Should not see metrics checked on versions table if no metrics', () => {
Expand Down
Loading

0 comments on commit 1c752ed

Please sign in to comment.