Skip to content

Commit

Permalink
Use closest Tr tag when searching by app name
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslaw Szwajkowski <[email protected]>
  • Loading branch information
rszwajko committed Jul 2, 2024
1 parent 9bba3ef commit f2d5f36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ export class Application {
selectItemsPerPage(100);
cy.get(tdTag)
.contains(this.name)
.parent(trTag)
.closest(trTag)
.within(() => {
cy.get(columnSelector).within(() => {
cy.get(".pf-v5-svg").eq(1).should("have.attr", "role", "img").and("be.visible");
Expand Down Expand Up @@ -734,7 +734,7 @@ export class Application {
if (applicationList[i].name != this.name) {
cy.get(".pf-m-compact> tbody > tr > td")
.contains(applicationList[i].name)
.parent(trTag)
.closest(trTag)
.within(() => {
click(selectBox);
cy.wait(2 * SEC);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export class Assessment {
selectItemsPerPage(100);
cy.get(tdTag)
.contains(name)
.parent(trTag)
.closest(trTag)
.within(() => {
cy.get(columnSelector).contains(status, { timeout: 30 * SEC });
});
Expand Down

0 comments on commit f2d5f36

Please sign in to comment.