[ARVADOS-WORKBENCH2] updated: 2.4.0-15-g078bedef

Git user git at public.arvados.org
Fri Apr 8 20:29:20 UTC 2022


Summary of changes:
 cypress/integration/collection.spec.js | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

       via  078bedef5794ee91497d4dd12157c86d6e490969 (commit)
      from  a5750c261be0991d8ebbe107115c9c5b01236f8d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 078bedef5794ee91497d4dd12157c86d6e490969
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Fri Apr 8 17:28:52 2022 -0300

    18881: Adds timeouts to flaky tests to avoid false negatives.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/cypress/integration/collection.spec.js b/cypress/integration/collection.spec.js
index 74acd056..39a2af42 100644
--- a/cypress/integration/collection.spec.js
+++ b/cypress/integration/collection.spec.js
@@ -252,8 +252,8 @@ describe('Collection panel tests', function () {
                             .and('not.contain', 'anotherKey: anotherValue');
                         // Check that the file listing show both read & write operations
                         cy.get('[data-cy=collection-files-panel]').within(() => {
-                            cy.wait(1000);
-                            cy.root().should('contain', fileName);
+                            cy.get('[data-cy=collection-files-right-panel]', { timeout: 5000 })
+                                .should('contain', fileName);
                             if (isWritable) {
                                 cy.get('[data-cy=upload-button]')
                                     .should(`${isWritable ? '' : 'not.'}contain`, 'Upload data');
@@ -335,7 +335,7 @@ describe('Collection panel tests', function () {
                 ];
                 eachPair(names, (from, to) => {
                     cy.get('[data-cy=collection-files-panel]')
-                        .contains(`${from}`).rightclick();
+                        .contains(`${from}`).rightclick({force: true});
                     cy.get('[data-cy=context-menu]')
                         .contains('Rename')
                         .click();
@@ -842,7 +842,7 @@ describe('Collection panel tests', function () {
 
                 cy.get('[data-cy=form-submit-btn]').click();
 
-                cy.get('.layout-pane-primary', { wait: 12000 }).contains('Projects').click();
+                cy.get('.layout-pane-primary', { timeout: 12000 }).contains('Projects').click();
 
                 cy.get('main').contains(`Files extracted from: ${this.collection.name}`).should('exist');
             });
@@ -976,7 +976,6 @@ describe('Collection panel tests', function () {
                             cy.get('[data-cy=form-submit-btn]').should('not.exist');
                             cy.get('[data-cy=collection-files-right-panel]')
                                  .contains('5mb_b.bin').should('exist');
-                            
                         });
                     });
                 });

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list