added assertion to draft fincalization and removed entering product details since grid is not always responsive withou extra action (#3959)
This commit is contained in:
parent
153ea5b77b
commit
09d254d50a
2 changed files with 5 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
/// <reference types="cypress"/>
|
||||
/// <reference types="../../../support"/>
|
||||
|
||||
import { PRODUCT_DETAILS, SHARED_ELEMENTS } from "../../../elements";
|
||||
import { SHARED_ELEMENTS } from "../../../elements";
|
||||
import { PRODUCTS_LIST } from "../../../elements/catalog/products/products-list";
|
||||
import { LOCAL_STORAGE_FOR_COLUMN_PICKER } from "../../../fixtures";
|
||||
import { urlList } from "../../../fixtures/urlList";
|
||||
|
@ -127,10 +127,6 @@ describe("As an admin I should be able to use column picker", () => {
|
|||
//next line hides picker
|
||||
cy.get(SHARED_ELEMENTS.pageHeader).click({ force: true });
|
||||
cy.get(SHARED_ELEMENTS.dynamicColumnContainer).should("not.exist");
|
||||
// now it checks does picking record from grid works when picker is gone
|
||||
cy.clickGridCell(1, 1);
|
||||
cy.waitForRequestAndCheckIfNoErrors("@ProductDetails");
|
||||
cy.get(PRODUCT_DETAILS.productUpdateFormSection).should("be.visible");
|
||||
});
|
||||
},
|
||||
);
|
||||
|
|
|
@ -4,6 +4,7 @@ import { SHARED_ELEMENTS } from "../../elements/shared/sharedElements";
|
|||
import { SELECT_SHIPPING_METHOD_FORM } from "../../elements/shipping/select-shipping-method-form";
|
||||
|
||||
export function finalizeDraftOrder(name) {
|
||||
cy.addAliasToGraphRequest("OrderDraftFinalize");
|
||||
cy.get(DRAFT_ORDER_SELECTORS.addProducts)
|
||||
.click()
|
||||
.assignElements(name)
|
||||
|
@ -36,5 +37,7 @@ export function finalizeDraftOrder(name) {
|
|||
.click()
|
||||
.wait("@OrderShippingMethodUpdate")
|
||||
.get(DRAFT_ORDER_SELECTORS.finalizeButton)
|
||||
.click();
|
||||
.click()
|
||||
.waitForRequestAndCheckIfNoErrors("@OrderDraftFinalize")
|
||||
.confirmationMessageShouldAppear();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue