Skip to content

Commit

Permalink
Update e2e to remove unnecessary use of parent()
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGreene committed Jan 3, 2023
1 parent eadc984 commit 1e42681
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/e2e/cypress/e2e/run/create-pipelinerun.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2022 The Tekton Authors
Copyright 2022-2023 The Tekton Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand Down Expand Up @@ -64,7 +64,7 @@ spec:

cy.contains('button', 'Create').click();

cy.contains(`${pipelineName}-run`).parent().click();
cy.contains('a', `${pipelineName}-run`).click();

cy.get('header[class="tkn--pipeline-run-header"]')
.find('span[class="tkn--status-label"]', { timeout: 15000 })
Expand Down Expand Up @@ -118,7 +118,7 @@ spec:

cy.contains('button', 'Create').click();

cy.contains(pipelineRunName).parent().click();
cy.contains('a', pipelineRunName).click();

cy.get('header[class="tkn--pipeline-run-header"]')
.find('span[class="tkn--status-label"]', { timeout: 15000 })
Expand Down Expand Up @@ -156,7 +156,7 @@ spec:

cy.contains('button', 'Create').click();

cy.get(`[title=${pipelineRunName}]`).parent().click();
cy.get(`[title=${pipelineRunName}]`).click();

cy.get('header[class="tkn--pipeline-run-header"]')
.find('span[class="tkn--status-label"]', { timeout: 15000 })
Expand Down Expand Up @@ -191,7 +191,7 @@ spec:

cy.contains('button', 'Create').click();

cy.get(`[title=${pipelineRunName}]`).parent().click();
cy.get(`[title=${pipelineRunName}]`).click();

cy.get('header[class="tkn--pipeline-run-header"]')
.find('span[class="tkn--status-label"]', { timeout: 15000 })
Expand Down

0 comments on commit 1e42681

Please sign in to comment.