remove test for variant creator (#2415)
* remove test for variant creator * force deploy
This commit is contained in:
parent
4c18f5ee34
commit
d10c355618
1 changed files with 0 additions and 49 deletions
|
@ -9,10 +9,6 @@ import { AVAILABLE_CHANNELS_FORM } from "../../../elements/channels/available-ch
|
||||||
import { BUTTON_SELECTORS } from "../../../elements/shared/button-selectors";
|
import { BUTTON_SELECTORS } from "../../../elements/shared/button-selectors";
|
||||||
import { urlList } from "../../../fixtures/urlList";
|
import { urlList } from "../../../fixtures/urlList";
|
||||||
import { ONE_PERMISSION_USERS } from "../../../fixtures/users";
|
import { ONE_PERMISSION_USERS } from "../../../fixtures/users";
|
||||||
import {
|
|
||||||
createProduct,
|
|
||||||
updateChannelInProduct,
|
|
||||||
} from "../../../support/api/requests/Product";
|
|
||||||
import { createTypeProduct } from "../../../support/api/requests/ProductType";
|
import { createTypeProduct } from "../../../support/api/requests/ProductType";
|
||||||
import {
|
import {
|
||||||
deleteChannelsStartsWith,
|
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(
|
xit(
|
||||||
"should create variant without sku",
|
"should create variant without sku",
|
||||||
{ tags: ["@products", "@allEnv"] },
|
{ tags: ["@products", "@allEnv"] },
|
||||||
|
|
Loading…
Reference in a new issue