['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);
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');
});
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');
});