17109: Hopefully fixes several integration test flakyness issues.
[arvados-workbench2.git] / cypress / integration / delete-multiple-files.spec.js
index 2c7f48404abf02eb9962ca0d4874da2ba41e118d..0955f56a036f9aa8aad670c576a74e36d662a9a7 100644 (file)
@@ -2,7 +2,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-describe('Collection panel tests', function () {
+describe('Multi-file deletion tests', function () {
     let activeUser;
     let adminUser;
 
@@ -33,6 +33,10 @@ describe('Collection panel tests', function () {
             .as('testCollection').then(function () {
                 cy.loginAs(activeUser);
                 cy.visit(`/collections/${this.testCollection.uuid}`);
+
+                cy.get('[data-cy=linear-progress]').should('exist');
+                cy.get('[data-cy=linear-progress]').should('not.exist');
+
                 cy.get('[data-cy=collection-files-panel]').within(() => {
                     cy.get('[type="checkbox"]').first().check();
                     cy.get('[type="checkbox"]').last().check();
@@ -56,6 +60,9 @@ describe('Collection panel tests', function () {
                 cy.loginAs(activeUser);
                 cy.visit(`/collections/${this.testCollection.uuid}`);
 
+                cy.get('[data-cy=linear-progress]').should('exist');
+                cy.get('[data-cy=linear-progress]').should('not.exist');
+
                 cy.get('[data-cy=virtual-file-tree] > div > i').first().click();
                 cy.get('[data-cy=collection-files-panel]')
                     .should('contain', 'foo');