20219: Try to fix tests on jenkins
authorStephen Smith <stephen@curii.com>
Tue, 15 Aug 2023 23:29:56 +0000 (19:29 -0400)
committerStephen Smith <stephen@curii.com>
Tue, 15 Aug 2023 23:29:56 +0000 (19:29 -0400)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>

cypress/integration/process.spec.js

index 8626924cf9f0e0445dc19211c4f72374d95e3f0c..64f27c50b54cf53e602cd5afdd944b55a2c88f9b 100644 (file)
@@ -431,6 +431,11 @@ describe('Process tests', function() {
                 ['echo', 'hello world'],
                 false, 'Committed')
             .then(function(containerRequest) {
+                // Create empty log file before loading process page
+                cy.appendLog(adminUser.token, containerRequest.uuid, "stdout.txt", [
+                    ""
+                ])
+
                 cy.loginAs(activeUser);
                 cy.goToPath(`/processes/${containerRequest.uuid}`);
                 cy.get('[data-cy=process-details]').should('contain', crName);
@@ -442,7 +447,7 @@ describe('Process tests', function() {
                 cy.appendLog(adminUser.token, containerRequest.uuid, "stdout.txt", [
                     "2023-07-18T20:14:48.128642814Z hello world"
                 ]).then(() => {
-                    cy.get('[data-cy=process-logs]', {timeout: 10000})
+                    cy.get('[data-cy=process-logs]', {timeout: 7000})
                         .should('not.contain', 'No logs yet')
                         .and('contain', 'hello world');
                 });
@@ -451,7 +456,7 @@ describe('Process tests', function() {
                 cy.appendLog(adminUser.token, containerRequest.uuid, "stderr.txt", [
                     "2023-07-18T20:14:49.128642814Z hello new line"
                 ]).then(() => {
-                    cy.get('[data-cy=process-logs]', {timeout: 10000})
+                    cy.get('[data-cy=process-logs]', {timeout: 7000})
                         .should('not.contain', 'No logs yet')
                         .and('contain', 'hello new line');
                 });