21317: set viewport width to 1920 in spec Arvados-DCO-1.1-Signed-off-by: Lisa Knox...
[arvados.git] / services / workbench2 / cypress / integration / collection.spec.js
index 2e409e58c9c2bd8f2b0dbf2ccc16d1ef4173610d..2a5c5343c9c7b9ad378a544970611d5c04d49c57 100644 (file)
@@ -28,11 +28,12 @@ describe("Collection panel tests", function () {
     });
 
     beforeEach(function () {
+        cy.viewport(1920, 1080)
         cy.clearCookies();
         cy.clearLocalStorage();
     });
 
-    it.only('shows the appropriate buttons in the toolbar', () => {
+    it('shows the appropriate buttons in the toolbar', () => {
 
         const msButtonTooltips = [
             'API Details',
@@ -63,9 +64,7 @@ describe("Collection panel tests", function () {
             cy.get("[data-cy=side-panel-tree]").contains("Home Projects").click();
             cy.waitForDom()
             cy.get('[data-cy=data-table-row]').contains(name).should('exist').parent().parent().parent().parent().click()
-            const buttons = cy.get('[data-cy=multiselect-button]')
-            console.log(buttons) 
-            cy.get('[data-cy=multiselect-button]').should('have.length', msButtonTooltips.length + 1)
+            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')