fix failing tests (#1144)
This commit is contained in:
parent
7df850bcb1
commit
50bb0105bd
5 changed files with 8 additions and 9 deletions
|
@ -42,7 +42,7 @@ export function getChannels() {
|
|||
export function deleteChannel(channelId, targetChannelId) {
|
||||
const deleteChannelMutation = `mutation{
|
||||
channelDelete(id: "${channelId}", input:{
|
||||
targetChannel: "${targetChannelId}"
|
||||
channelId: "${targetChannelId}"
|
||||
}){
|
||||
channel{
|
||||
name
|
||||
|
|
|
@ -35,11 +35,11 @@ export function createDraftOrder(
|
|||
draftOrderCreate(input:{
|
||||
user:"${customerId}"
|
||||
shippingMethod:"${shippingMethodId}"
|
||||
channel: "${channelId}"
|
||||
channelId: "${channelId}"
|
||||
${getDefaultAddress(address, "shippingAddress")}
|
||||
${getDefaultAddress(address, "billingAddress")}
|
||||
}){
|
||||
orderErrors{
|
||||
errors{
|
||||
message
|
||||
}
|
||||
order{
|
||||
|
|
|
@ -122,8 +122,7 @@ describe("Vouchers discounts", () => {
|
|||
});
|
||||
});
|
||||
|
||||
// Test should pass after fixing - SALEOR-1629 bug
|
||||
xit("should create free shipping voucher", () => {
|
||||
it("should create free shipping voucher", () => {
|
||||
const voucherCode = `${startsWith}${faker.datatype.number()}`;
|
||||
|
||||
createVoucher({
|
||||
|
|
|
@ -95,9 +95,7 @@ describe("Homepage analytics", () => {
|
|||
});
|
||||
|
||||
it("should all elements be visible on the dashboard", () => {
|
||||
cy.pause();
|
||||
cy.visit(urlList.homePage);
|
||||
cy.pause()
|
||||
cy.visit(urlList.homePage)
|
||||
.softAssertVisibility(HOMEPAGE_SELECTORS.sales)
|
||||
.softAssertVisibility(HOMEPAGE_SELECTORS.orders)
|
||||
.softAssertVisibility(HOMEPAGE_SELECTORS.activity)
|
||||
|
|
|
@ -59,7 +59,9 @@ export function createVariant({
|
|||
.type(sku)
|
||||
.get(VARIANTS_SELECTORS.addWarehouseButton)
|
||||
.click();
|
||||
cy.contains(VARIANTS_SELECTORS.warehouseOption, warehouseName).click();
|
||||
cy.contains(VARIANTS_SELECTORS.warehouseOption, warehouseName).click({
|
||||
force: true
|
||||
});
|
||||
cy.get(VARIANTS_SELECTORS.saveButton).click();
|
||||
cy.get(BUTTON_SELECTORS.back).click();
|
||||
selectChannelVariantInDetailsPage(channelName, attributeName);
|
||||
|
|
Loading…
Reference in a new issue