From cdf3c3dbe06f759b77bbf5cdcf8ff563b87b9138 Mon Sep 17 00:00:00 2001 From: Lisa Knox Date: Wed, 16 Oct 2024 11:12:38 -0400 Subject: [PATCH] 22135: added test for no-items-found Arvados-DCO-1.1-Signed-off-by: Lisa Knox --- .../workbench2/cypress/e2e/page-not-found.cy.js | 15 ++++++++++++++- .../src/components/data-table/data-table.tsx | 1 + 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/services/workbench2/cypress/e2e/page-not-found.cy.js b/services/workbench2/cypress/e2e/page-not-found.cy.js index 7cffd1079b..57ea6b2578 100644 --- a/services/workbench2/cypress/e2e/page-not-found.cy.js +++ b/services/workbench2/cypress/e2e/page-not-found.cy.js @@ -52,4 +52,17 @@ describe('Page not found tests', function() { cy.get('[data-cy=not-found-view]').should('exist'); }); }); -}) + + it('shows not found popup in workflow tab', function() { + cy.createProject({ + owningUser: adminUser, + projectName: 'test-project', + }) + cy.loginAs(adminUser); + cy.waitForDom(); + + cy.get('[data-cy=mpv-tabs]').contains("Workflow Runs").click(); + cy.contains('No workflow runs found').should('exist'); + }); +}); + diff --git a/services/workbench2/src/components/data-table/data-table.tsx b/services/workbench2/src/components/data-table/data-table.tsx index 57d14d0bac..1e2685db75 100644 --- a/services/workbench2/src/components/data-table/data-table.tsx +++ b/services/workbench2/src/components/data-table/data-table.tsx @@ -387,6 +387,7 @@ export const DataTable = withStyles(styles)( // isLoaded && !working && !isNotFound return (