fixed products presest last assertion, changed quantity of product on draft orders (#4025)
This commit is contained in:
parent
cf6a22ad18
commit
d4991e56c7
3 changed files with 25 additions and 8 deletions
|
@ -9,7 +9,11 @@ import {
|
|||
ORDERS_SELECTORS,
|
||||
SHARED_ELEMENTS,
|
||||
} from "../../elements/";
|
||||
import { MESSAGES, ONE_PERMISSION_USERS, urlList } from "../../fixtures";
|
||||
import {
|
||||
MESSAGES,
|
||||
ONE_PERMISSION_USERS,
|
||||
urlList,
|
||||
} from "../../fixtures";
|
||||
import {
|
||||
createCustomer,
|
||||
getOrder,
|
||||
|
@ -28,6 +32,9 @@ import {
|
|||
productsUtils,
|
||||
updateTaxConfigurationForChannel,
|
||||
} from "../../support/api/utils/";
|
||||
import {
|
||||
ensureCanvasStatic,
|
||||
} from "../../support/customCommands/sharedElementsOperations/canvas";
|
||||
import {
|
||||
addNewProductToOrder,
|
||||
addPrivateMetadataFieldFulfillmentOrder,
|
||||
|
@ -308,7 +315,7 @@ describe("Orders", () => {
|
|||
address,
|
||||
}).then(unconfirmedOrderResponse => {
|
||||
cy.visit(urlList.orders + `${unconfirmedOrderResponse.order.id}`);
|
||||
|
||||
ensureCanvasStatic(SHARED_ELEMENTS.dataGridTable);
|
||||
changeQuantityOfProducts();
|
||||
|
||||
cy.get(ORDERS_SELECTORS.orderSummarySubtotalPriceRow).should(
|
||||
|
|
|
@ -1,10 +1,20 @@
|
|||
/// <reference types="cypress"/>
|
||||
/// <reference types="../../../support"/>
|
||||
|
||||
import { PRODUCTS_LIST } from "../../../elements/catalog/products/products-list";
|
||||
import { SEARCH } from "../../../elements/shared";
|
||||
import { LOCAL_STORAGE_KEYS, urlList } from "../../../fixtures/";
|
||||
import { ensureCanvasStatic } from "../../../support/customCommands/sharedElementsOperations/canvas";
|
||||
import {
|
||||
PRODUCTS_LIST,
|
||||
} from "../../../elements/catalog/products/products-list";
|
||||
import {
|
||||
PRESETS,
|
||||
SEARCH,
|
||||
} from "../../../elements/shared";
|
||||
import {
|
||||
LOCAL_STORAGE_KEYS,
|
||||
urlList,
|
||||
} from "../../../fixtures/";
|
||||
import {
|
||||
ensureCanvasStatic,
|
||||
} from "../../../support/customCommands/sharedElementsOperations/canvas";
|
||||
import {
|
||||
addPresetWithName,
|
||||
clickDeletePresetButton,
|
||||
|
@ -90,7 +100,7 @@ describe("As a user I should be able to save selected filters with search querie
|
|||
localStorage.getItem(LOCAL_STORAGE_KEYS.keys.productPresets),
|
||||
).to.not.contains(`query=${secondPreset}`);
|
||||
clickShowSavedPresetsButton();
|
||||
cy.contains(firstPreset).should("be.visible");
|
||||
cy.get(PRESETS.savedPreset).contains(firstPreset).should("be.visible");
|
||||
});
|
||||
},
|
||||
);
|
||||
|
|
|
@ -37,7 +37,7 @@ export function changeQuantityOfProducts() {
|
|||
cy.get(ORDERS_SELECTORS.dataGridTable).should("be.visible");
|
||||
cy.get(ORDERS_SELECTORS.quantityCellFirstRowOrderDetails)
|
||||
.click({ force: true })
|
||||
.wait(200)
|
||||
.should("have.attr", "aria-selected", "true")
|
||||
.click({ force: true })
|
||||
.wait(1000);
|
||||
cy.get(ORDERS_SELECTORS.gridClip)
|
||||
|
|
Loading…
Reference in a new issue