From 74e6a2456fbff6a8e58adde0f4a3df6eb475802b Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Tue, 22 Aug 2023 13:04:25 -0400 Subject: [PATCH] 20617: Extend sharing cypress test to check search/filters Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- cypress/integration/sharing.spec.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cypress/integration/sharing.spec.js b/cypress/integration/sharing.spec.js index 5fbf5692..f742d090 100644 --- a/cypress/integration/sharing.spec.js +++ b/cypress/integration/sharing.spec.js @@ -106,6 +106,20 @@ describe('Sharing tests', function () { cy.contains('Shared with me').click(); + // Test search + cy.get('[data-cy=search-input] input').type('readonly'); + cy.get('main').should('not.contain', mySharedWritableProject.name); + cy.get('main').should('contain', mySharedReadonlyProject.name); + cy.get('[data-cy=search-input] input').clear(); + + // Test filter + cy.waitForDom().get('th').contains('Type').click(); + cy.get('div[role=presentation]').contains('Project').click(); + cy.waitForDom().get('main table tr td').contains('Project').should('not.exist'); + cy.get('div[role=presentation]').contains('Project').click(); + cy.waitForDom().get('div[role=presentation] button').contains('Close').click(); + + // Test move to trash cy.get('main').contains(mySharedWritableProject.name).rightclick(); cy.get('[data-cy=context-menu]').should('contain', 'Move to trash'); cy.get('[data-cy=context-menu]').contains('Move to trash').click(); -- 2.30.2