Skip to content

Commit

Permalink
Verify logs in Create TaskRun and Create PipelineRun E2E
Browse files Browse the repository at this point in the history
Ensure the log content is displayed correctly including the status
footer when the step is complete.
  • Loading branch information
AlanGreene authored and tekton-robot committed Oct 2, 2023
1 parent 5f61d4d commit 3571dd1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/e2e/cypress/e2e/run/pipelinerun-create.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ spec:
cy.get('header[class="tkn--pipeline-run-header"]')
.find('span[class="tkn--status-label"]', { timeout: 15000 })
.should('have.text', 'Succeeded');

cy.contains('.tkn--log', 'Hello World!');
cy.contains('.tkn--log', 'Step completed successfully');
});

it('should populate YAML editor based on form inputs', function () {
Expand Down Expand Up @@ -117,6 +120,9 @@ spec:
cy.get('header[class="tkn--pipeline-run-header"]')
.find('span[class="tkn--status-label"]', { timeout: 15000 })
.should('have.text', 'Succeeded');

cy.contains('.tkn--log', 'Hello World!');
cy.contains('.tkn--log', 'Step completed successfully');
});

it('should create PipelineRun in YAML mode', function () {
Expand Down Expand Up @@ -156,6 +162,9 @@ spec:
cy.get('header[class="tkn--pipeline-run-header"]')
.find('span[class="tkn--status-label"]', { timeout: 15000 })
.should('have.text', 'Succeeded');

cy.contains('.tkn--log', 'Hello World!');
cy.contains('.tkn--log', 'Step completed successfully');
});

it('should create PipelineRun when open YAML mode directly', function () {
Expand Down Expand Up @@ -192,5 +201,8 @@ spec:
cy.get('header[class="tkn--pipeline-run-header"]')
.find('span[class="tkn--status-label"]', { timeout: 15000 })
.should('have.text', 'Succeeded');

cy.contains('.tkn--log', 'Hello World!');
cy.contains('.tkn--log', 'Step completed successfully');
});
});
12 changes: 12 additions & 0 deletions packages/e2e/cypress/e2e/run/taskrun-create.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ spec:
cy.get('header[class="tkn--pipeline-run-header"]')
.find('span[class="tkn--status-label"]', { timeout: 15000 })
.should('have.text', 'Succeeded');

cy.contains('.tkn--log', 'Hello World!');
cy.contains('.tkn--log', 'Step completed successfully');
});

it('should populate YAML editor based on form inputs', function () {
Expand Down Expand Up @@ -107,6 +110,9 @@ spec:
cy.get('header[class="tkn--pipeline-run-header"]')
.find('span[class="tkn--status-label"]', { timeout: 15000 })
.should('have.text', 'Succeeded');

cy.contains('.tkn--log', 'Hello World!');
cy.contains('.tkn--log', 'Step completed successfully');
});

it('should create TaskRun in YAML mode', function () {
Expand Down Expand Up @@ -143,6 +149,9 @@ spec:
cy.get('header[class="tkn--pipeline-run-header"]')
.find('span[class="tkn--status-label"]', { timeout: 15000 })
.should('have.text', 'Succeeded');

cy.contains('.tkn--log', 'Hello World!');
cy.contains('.tkn--log', 'Step completed successfully');
});

it('should create TaskRun when open YAML mode directly', function () {
Expand Down Expand Up @@ -176,5 +185,8 @@ spec:
cy.get('header[class="tkn--pipeline-run-header"]')
.find('span[class="tkn--status-label"]', { timeout: 15000 })
.should('have.text', 'Succeeded');

cy.contains('.tkn--log', 'Hello World!');
cy.contains('.tkn--log', 'Step completed successfully');
});
});

0 comments on commit 3571dd1

Please sign in to comment.