fixed test SALEOR_0810 (#3312)

This commit is contained in:
wojteknowacki 2023-03-09 11:05:25 +01:00 committed by GitHub
parent bf532939e2
commit 6dfdf46b48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View file

@ -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']",
};

View file

@ -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) {

View file

@ -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}>