Fix tests for products attributes (#2016)

This commit is contained in:
Karolina Rakoczy 2022-04-26 14:04:09 +02:00 committed by GitHub
parent 8c667cc7b8
commit 2c8607e1e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ filterTests({ definedTags: ["all"] }, () => {
.click() .click()
.addAliasToGraphRequest("AssignProductAttribute") .addAliasToGraphRequest("AssignProductAttribute")
.assignElements(startsWith, false) .assignElements(startsWith, false)
.confirmationMessageShouldDisappear() .confirmationMessageShouldAppear()
.waitForRequestAndCheckIfNoErrors("@AssignProductAttribute"); .waitForRequestAndCheckIfNoErrors("@AssignProductAttribute");
getProductType(productType.id); getProductType(productType.id);
}) })
@ -71,7 +71,7 @@ filterTests({ definedTags: ["all"] }, () => {
.click() .click()
.addAliasToGraphRequest("AssignProductAttribute") .addAliasToGraphRequest("AssignProductAttribute")
.assignElements(startsWith, false) .assignElements(startsWith, false)
.confirmationMessageShouldDisappear() .confirmationMessageShouldAppear()
.wait("@AssignProductAttribute"); .wait("@AssignProductAttribute");
getProductType(productType.id); getProductType(productType.id);
}) })
@ -96,6 +96,7 @@ filterTests({ definedTags: ["all"] }, () => {
productTypeDetailsUrl(productType.id) productTypeDetailsUrl(productType.id)
) )
.get(BUTTON_SELECTORS.deleteIcon) .get(BUTTON_SELECTORS.deleteIcon)
.should("be.enabled")
.click() .click()
.addAliasToGraphRequest("UnassignProductAttribute") .addAliasToGraphRequest("UnassignProductAttribute")
.get(BUTTON_SELECTORS.submit) .get(BUTTON_SELECTORS.submit)
@ -123,6 +124,7 @@ filterTests({ definedTags: ["all"] }, () => {
) )
.get(BUTTON_SELECTORS.deleteIcon) .get(BUTTON_SELECTORS.deleteIcon)
.click() .click()
.should("be.enabled")
.addAliasToGraphRequest("UnassignProductAttribute") .addAliasToGraphRequest("UnassignProductAttribute")
.get(BUTTON_SELECTORS.submit) .get(BUTTON_SELECTORS.submit)
.click() .click()