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="cypress"/>
|
||||||
/// <reference types="../../../support"/>
|
/// <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 { PRODUCTS_LIST } from "../../../elements/catalog/products/products-list";
|
||||||
import { LOCAL_STORAGE_FOR_COLUMN_PICKER } from "../../../fixtures";
|
import { LOCAL_STORAGE_FOR_COLUMN_PICKER } from "../../../fixtures";
|
||||||
import { urlList } from "../../../fixtures/urlList";
|
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
|
//next line hides picker
|
||||||
cy.get(SHARED_ELEMENTS.pageHeader).click({ force: true });
|
cy.get(SHARED_ELEMENTS.pageHeader).click({ force: true });
|
||||||
cy.get(SHARED_ELEMENTS.dynamicColumnContainer).should("not.exist");
|
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";
|
import { SELECT_SHIPPING_METHOD_FORM } from "../../elements/shipping/select-shipping-method-form";
|
||||||
|
|
||||||
export function finalizeDraftOrder(name) {
|
export function finalizeDraftOrder(name) {
|
||||||
|
cy.addAliasToGraphRequest("OrderDraftFinalize");
|
||||||
cy.get(DRAFT_ORDER_SELECTORS.addProducts)
|
cy.get(DRAFT_ORDER_SELECTORS.addProducts)
|
||||||
.click()
|
.click()
|
||||||
.assignElements(name)
|
.assignElements(name)
|
||||||
|
@ -36,5 +37,7 @@ export function finalizeDraftOrder(name) {
|
||||||
.click()
|
.click()
|
||||||
.wait("@OrderShippingMethodUpdate")
|
.wait("@OrderShippingMethodUpdate")
|
||||||
.get(DRAFT_ORDER_SELECTORS.finalizeButton)
|
.get(DRAFT_ORDER_SELECTORS.finalizeButton)
|
||||||
.click();
|
.click()
|
||||||
|
.waitForRequestAndCheckIfNoErrors("@OrderDraftFinalize")
|
||||||
|
.confirmationMessageShouldAppear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue