test fix create product without sku (#3623)
This commit is contained in:
parent
352ac9566b
commit
757833ca57
2 changed files with 5 additions and 4 deletions
|
@ -150,13 +150,13 @@ describe("Creating variants", () => {
|
|||
getProductVariants(createdProduct.id, defaultChannel.slug);
|
||||
})
|
||||
.then(([firstVariant, secondVariant]) => {
|
||||
expect(firstVariant).to.have.property("price", variants[0].price);
|
||||
expect(secondVariant).to.have.property("name", name);
|
||||
expect(secondVariant).to.have.property("price", variants[1].price);
|
||||
expect(secondVariant).to.have.property("price", variants[0].price);
|
||||
expect(firstVariant).to.have.property("name", name);
|
||||
expect(firstVariant).to.have.property("price", variants[1].price);
|
||||
createWaitingForCaptureOrder({
|
||||
channelSlug: defaultChannel.slug,
|
||||
email: "example@example.com",
|
||||
variantsList: [secondVariant],
|
||||
variantsList: [firstVariant],
|
||||
shippingMethodName: shippingMethod.name,
|
||||
address,
|
||||
});
|
||||
|
|
|
@ -152,6 +152,7 @@ export function addVariantToDataGrid(variantName) {
|
|||
|
||||
export function enterVariantEditPage() {
|
||||
cy.get(PRODUCT_DETAILS.dataGridTable)
|
||||
.scrollIntoView()
|
||||
.should("be.visible")
|
||||
.wait(1000)
|
||||
.get(PRODUCT_DETAILS.editVariant)
|
||||
|
|
Loading…
Reference in a new issue