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