18946: Fix flaky test
authorPeter Amstutz <peter.amstutz@curii.com>
Mon, 14 Aug 2023 20:07:43 +0000 (16:07 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Mon, 14 Aug 2023 20:07:43 +0000 (16:07 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

cypress/integration/collection.spec.js

index d5b1b9ebcf7169dec5649e89d1f82de52b3a250c..3dd833d04ebab71d3407887adfc14d07c980b5b6 100644 (file)
@@ -815,7 +815,7 @@ describe('Collection panel tests', function () {
                         cy.get('[data-cy=collection-version-browser-select-1]')
                             .should('contain', '1')
                             .and('contain', '6 B')
-                            .and('contain', adminUser.user.uuid);
+                            .and('contain', adminUser.user.full_name);
                         // Version 2: 3 bytes in size (one file removed)
                         cy.get('[data-cy=collection-version-browser-select-2]')
                             .should('contain', '2')
@@ -876,7 +876,7 @@ describe('Collection panel tests', function () {
                     .should('contain', '3').and('contain', '3 B');
 
                 // Check context menus on version browser
-                cy.get('[data-cy=collection-version-browser-select-3]').rightclick()
+                cy.waitForDom().get('[data-cy=collection-version-browser-select-3]').rightclick()
                 cy.get('[data-cy=context-menu]')
                     .should('contain', 'Add to favorites')
                     .and('contain', 'Make a copy')