Skip to content

Commit

Permalink
add wait for ProductCreate request (#2543)
Browse files Browse the repository at this point in the history
  • Loading branch information
szczecha authored Nov 8, 2022
1 parent 0c1fa47 commit 6efd732
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cypress/e2e/products/createProduct.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ describe("As an admin I should be able to create product", () => {
productOrgResp => (productData.productOrganization = productOrgResp),
);
cy.addAliasToGraphRequest("ProductDetails")
.addAliasToGraphRequest("ProductCreate")
.get(BUTTON_SELECTORS.confirm)
.click()
.waitForRequestAndCheckIfNoErrors("@ProductCreate")
.confirmationMessageShouldDisappear()
.waitForRequestAndCheckIfNoErrors("@ProductDetails")
.get("@ProductDetails")
Expand Down

0 comments on commit 6efd732

Please sign in to comment.