remove test for variant creator (#2415)

* remove test for variant creator

* force deploy
This commit is contained in:
Ewa Czerniak 2022-10-20 11:16:31 +02:00 committed by GitHub
parent 4c18f5ee34
commit d10c355618
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,10 +9,6 @@ import { AVAILABLE_CHANNELS_FORM } from "../../../elements/channels/available-ch
import { BUTTON_SELECTORS } from "../../../elements/shared/button-selectors";
import { urlList } from "../../../fixtures/urlList";
import { ONE_PERMISSION_USERS } from "../../../fixtures/users";
import {
createProduct,
updateChannelInProduct,
} from "../../../support/api/requests/Product";
import { createTypeProduct } from "../../../support/api/requests/ProductType";
import {
deleteChannelsStartsWith,
@ -95,51 +91,6 @@ describe("Creating variants", () => {
);
});
xit(
"should create variant without sku by variant creator",
{ tags: ["@products", "@allEnv"] },
() => {
const name = `${startsWith}${faker.datatype.number()}`;
const price = 10;
let createdProduct;
createProduct({
attributeId: attribute.id,
name,
productTypeId: productType.id,
categoryId: category.id,
})
.then(resp => {
createdProduct = resp;
updateChannelInProduct({
productId: createdProduct.id,
channelId: defaultChannel.id,
});
cy.visit(`${urlList.products}${createdProduct.id}`);
cy.waitForProgressBarToNotBeVisible();
createVariant({
price,
attributeName: attributeValues[0],
});
getProductVariants(createdProduct.id, defaultChannel.slug);
})
.then(([variant]) => {
expect(variant).to.have.property("name", attributeValues[0]);
expect(variant).to.have.property("price", price);
createWaitingForCaptureOrder({
channelSlug: defaultChannel.slug,
email: "example@example.com",
variantsList: [variant],
shippingMethodName: shippingMethod.name,
address,
});
})
.then(({ order }) => {
expect(order.id).to.be.ok;
});
},
);
xit(
"should create variant without sku",
{ tags: ["@products", "@allEnv"] },