add wait for ProductCreate request (#2543)

This commit is contained in:
Anna Szczęch 2022-11-08 10:20:02 +00:00 committed by GitHub
parent 0c1fa47c35
commit 6efd73230b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")