Skip to content

Commit

Permalink
Use closest Tr tag when searching by app name (#1154)
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslaw Szwajkowski <[email protected]>
  • Loading branch information
rszwajko authored Jul 2, 2024
1 parent 9bba3ef commit f96e9d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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 Expand Up @@ -896,7 +896,7 @@ export class Application {
Application.open();
cy.get(tdTag)
.contains(this.name)
.parent(trTag)
.closest(trTag)
.within(() => {
cy.get(tagsColumnSelector).contains(tagsCount, { timeout: 30 * 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 f96e9d0

Please sign in to comment.