fix for flaky TC:2902 test (#2423)

This commit is contained in:
Ewa Czerniak 2022-10-20 13:03:08 +02:00 committed by GitHub
parent 2e292c2e06
commit 5c48f5387e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -87,9 +87,6 @@ describe("As an admin I should be able to create variant", () => {
`${urlList.products}${createdProduct.id}`,
).waitForProgressBarToNotBeVisible();
addVariantToDataGrid(name);
cy.get(PRODUCT_DETAILS.dataGridTable)
.should("be.visible")
.wait(1000);
enterVariantEditPage();
selectChannelsForVariant();
createVariant({

View file

@ -151,7 +151,10 @@ export function addVariantToDataGrid(variantName) {
}
export function enterVariantEditPage() {
cy.get(BUTTON_SELECTORS.showMoreButton)
cy.get(PRODUCT_DETAILS.dataGridTable)
.should("be.visible")
.wait(1000)
.get(BUTTON_SELECTORS.showMoreButton)
.click()
.get(PRODUCT_DETAILS.editVariant)
.click();