Skip to content

Commit

Permalink
e2e fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matborowczyk committed Jan 30, 2025
1 parent 38815c2 commit 7f1a465
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cypress/e2e/scenario-2.2-child-parent-service.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ if (Cypress.env("edition") === "iso") {
.contains("Service Catalog")
.click();
cy.get("#parent-service").contains("Show inventory").click();
cy.get('[data-label="State"]')
.eq(0)
.should("have.text", "up", { timeout: 90000 });

// try delete item (Should not be possible)
cy.get('[aria-label="row actions toggle"]', { timeout: 60000 }).click();
Expand All @@ -151,7 +154,9 @@ if (Cypress.env("edition") === "iso") {
.click();

cy.get("#child-service").contains("Show inventory").click();

cy.get('[data-label="State"]')
.eq(0)
.should("have.text", "up", { timeout: 90000 });
// try delete item (Should be possible)
cy.get('[aria-label="row actions toggle"]', { timeout: 60000 }).click();
cy.get('[role="menuitem"]').contains("Delete").click();
Expand All @@ -160,7 +165,7 @@ if (Cypress.env("edition") === "iso") {
cy.get(".pf-v6-c-form__actions").contains("Yes").click();

cy.get('[aria-label="ServiceInventory-Empty"]', {
timeout: 220000,
timeout: 240000,
}).should("to.be.visible");
});
});
Expand Down

0 comments on commit 7f1a465

Please sign in to comment.