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 480472f765f48cfc1cb66a2b253af5ee02a3c327..2a5c5343c9c7b9ad378a544970611d5c04d49c57 100644 (file)
@@ -4,7 +4,7 @@
 
 const path = require("path");
 
-describe.only("Collection panel tests", function () {
+describe("Collection panel tests", function () {
     let activeUser;
     let adminUser;
     let downloadsFolder;
@@ -28,11 +28,12 @@ describe.only("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',
@@ -49,7 +50,6 @@ describe.only("Collection panel tests", function () {
         ];
 
         cy.loginAs(activeUser);
-        cy.viewport(1450, 850)
         const name = `Test collection ${Math.floor(Math.random() * 999999)}`;
         cy.get("[data-cy=side-panel-button]").click({force: true});
         cy.get("[data-cy=side-panel-new-collection]").click();
@@ -64,7 +64,7 @@ describe.only("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()
-            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')