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