Skip to content

Commit

Permalink
add wait after start WildFly containr and before configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kstekovi committed Aug 14, 2023
1 parent ee276b3 commit 73fcecd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ describe("TESTS: Configuration => Subsystem => Distributable Web => Configuratio
cy.startWildflyContainer()
.then((result) => {
managementEndpoint = result as string;
cy.wait(5000);
})
.then(() => {
cy.addAddress(
Expand Down
4 changes: 2 additions & 2 deletions packages/testsuite/cypress/support/form-editing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Cypress.Commands.add("cancelForm", (formId) => {

Cypress.Commands.add("resetForm", (formId, managementApi, address) => {
const resetButton = "#" + formId + ' a.clickable[data-operation="reset"';
// Setting the force parameter to true is a workaround turning off cypress checks whether the reset button is clickable,
// Setting the force parameter to true is a workaround turning off cypress checks whether the reset button is clickable,
// as those checks sometimes fail. Next lines check the functionality (not) invoked by the button sufficiently.
cy.get(resetButton).click({ force: true });
cy.get(resetButton).click();
cy.get("body").then(($body) => {
if ($body.find(".modal-footer .btn-hal.btn-primary").length) {
cy.get(".modal-footer .btn-hal.btn-primary").click({ force: true });
Expand Down

0 comments on commit 73fcecd

Please sign in to comment.