20617: Extend sharing cypress test to check search/filters 20617-shared-with-me-filtering
authorStephen Smith <stephen@curii.com>
Tue, 22 Aug 2023 17:04:25 +0000 (13:04 -0400)
committerStephen Smith <stephen@curii.com>
Tue, 22 Aug 2023 17:04:25 +0000 (13:04 -0400)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>

cypress/integration/sharing.spec.js

index 5fbf5692f2b200e17c3aaa48b6731109b889e3fb..f742d09062a4f0b95fe8be8946fb20464a0b8ef7 100644 (file)
@@ -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();