fixed test SALEOR_0810 (#3312)
This commit is contained in:
parent
bf532939e2
commit
6dfdf46b48
3 changed files with 5 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
export const SHIPPING_ZONE_DETAILS = {
|
||||
assignCountryButton: "[data-test-id='assign-country']",
|
||||
descriptionInput: "[name='description']",
|
||||
descriptionInput: "[data-test-id='shipping-zone-description']",
|
||||
submitAssignCountry: "[type='submit']",
|
||||
searchInput: "[name='query']",
|
||||
tableRow: "[class*='MuiTableRow']",
|
||||
|
@ -13,5 +13,5 @@ export const SHIPPING_ZONE_DETAILS = {
|
|||
option: "[data-test-id='multi-autocomplete-select-option']",
|
||||
warehouseSelector: "[testId='warehouses']",
|
||||
channelSelector: "[testId='channels']",
|
||||
removeWarehouseButton: "[data-test-id='warehouses-remove']"
|
||||
removeWarehouseButton: "[data-test-id='warehouses-remove']",
|
||||
};
|
||||
|
|
|
@ -57,11 +57,11 @@ export function fillUpShippingZoneData({
|
|||
.click()
|
||||
.get(SHIPPING_ZONE_DETAILS.submitAssignCountry)
|
||||
.click()
|
||||
.addAliasToGraphRequest("UpdateShippingZone")
|
||||
.get(BUTTON_SELECTORS.confirm)
|
||||
.click()
|
||||
.confirmationMessageShouldDisappear()
|
||||
.addAliasToGraphRequest("UpdateShippingZone")
|
||||
.reload();
|
||||
.waitForRequestAndCheckIfNoErrors("@UpdateShippingZone");
|
||||
}
|
||||
|
||||
export function changeWeightUnit(weightUnit) {
|
||||
|
|
|
@ -85,6 +85,7 @@ const ShippingZoneInfo: React.FC<ShippingZoneInfoProps> = ({
|
|||
<TextField
|
||||
error={data.description.length > MAX_DESCRIPTION_LENGTH}
|
||||
name={"description"}
|
||||
data-test-id="shipping-zone-description"
|
||||
label={
|
||||
<div className={classes.labelContainer}>
|
||||
<div className={classes.label}>
|
||||
|
|
Loading…
Reference in a new issue