15317: Update help text to link to new wiki page.
[arvados.git] / services / workbench2 / cypress / integration / workflow.spec.js
index 76ad3c631dfe96fb33b836fb83f348b446aa293a..844e87d8deb64b1969014296330a17312623051f 100644 (file)
@@ -265,4 +265,31 @@ describe('Registered workflow panel tests', function() {
                     });
             });
     });
+
+    it('shows the appropriate buttons in the multiselect toolbar', () => {
+
+        const msButtonTooltips = [
+            'API Details',
+            'Copy to clipboard',
+            'Delete Workflow',
+            'Open in new tab',
+            'Run Workflow',
+            'View details',
+        ];
+
+        cy.createResource(activeUser.token, "workflows", {workflow: {name: "Test wf"}})
+            .then(function(workflowResource) {
+                cy.loginAs(activeUser);
+                cy.get("[data-cy=side-panel-tree]").contains("Home Projects").click();
+                cy.waitForDom()
+                cy.get('[data-cy=data-table-row]').contains(workflowResource.name).should('exist').parent().parent().parent().click()
+                cy.get('[data-cy=multiselect-button]').should('have.length', msButtonTooltips.length)
+                for (let i = 0; i < msButtonTooltips.length; i++) {
+                        cy.get('[data-cy=multiselect-button]').eq(i).trigger('mouseover');
+                        cy.get('body').contains(msButtonTooltips[i]).should('exist')
+                        cy.get('[data-cy=multiselect-button]').eq(i).trigger('mouseout');
+                    }
+                });
+    })
+
 });