Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Title: The reduced area message is not displayed to the user and the user stay in infinite loading on the payment screen

Markets: PLK ES, BK PT and BK ES

...

Context:
Besides the "Pause the Delivery Service" where we display a friendly message on a modal explaining the reason the delivery is paused at that moment, we also have the "Reduced area feature". 
This feature is similar to paused delivery service, we display a specific message to inform the user that the restaurant had the delivery area reduced and as soon the restaurant will back to the regular area.

This feature is working fine in two current transitions:flows, on the store locator and when the user goes to the cart. However, when the user is already on the cart and goes to the payment screen, or the user is already on the payment screen and goes to confirm, the message is not displayed and the user will stay in infinite loading and the order will not be placed. So we have to fix this on these transitions.

Below are the scenarios and a pre-analysis by the Iberia Dedicated Team:

ID

Scenario

Expected result

Current result

1

The restaurant has the area reduced

...

. The user accesses the store locator page

...

and goes to the delivery tab

...

. When enters the delivery address

...

out of the reduced area

...

:

The

...

reduced area message

...

must be displayed.

Passed

2

The user already has entered the delivery address

...

out of the reduced area and is on the menu page. The restaurant has the area reduced

...

. When the user goes to the cart page

...

However, we have more transitions and this feature is not working, the message is not displayed, and if the user will stay in infinite loading if he/she tries to confirm the payment.

...

:

The reduced area message must be displayed.

Passed

3

The user is already on the cart with a delivery address out of the reduced area. The restaurant has the area reduced.

...

When the user goes to the payment

...

page:

The reduced area

...

message must be

...

displayed.

Failed

The reduced area message is NOT displayed.

If the user reloads the page, the message is displayed.

4

The user is already on the payment

...

page with a delivery address out of the reduced area. The restaurant has the area reduced.

...

When the user

...

goes to confirm the payment

...

:

The reduced area

...

message must be displayed and the payment must not be confirmed.

Failed

The reduced area message is NOT displayed and the user is kept on the infinite loading payment.

If the user reloads the page, the message is displayed.

Pre-analysis: The developers of the Iberia dedicated team had done a pre-analysis to help and identified that on these transitions Whitelabel is getting the "LON" and "LAT" of the Local Storage, but these values refers refer the restaurant address and not the "LON" and "LAT" from the delivery address provided by user, this way the modal never will be displayed because we compare the address informed by the user to the reduced area.

...

Evidences:

Scenario

1

The restaurant has the area reduced. The user accesses the store locator page and goes to the delivery tab. When enters the delivery address out of the reduced area:

The reduced area message must be displayed.

Passed

2

The user already has entered the delivery address out of the reduced area and is on the menu page. The restaurant has the area reduced. When the user goes to the cart page:

The reduced area message must be displayed.

Passed

3

The user is already on the cart with a delivery address out of the reduced area. The restaurant has the area reduced. When the user goes to the payment page:

The reduced area message must be displayed.

1

Expected result

Current result

The reduced area message must be displayed and the payment must not be confirmed.

Passed

PLK-ES-store-locator-reduced-area.mov

Passed

BK-ES-reduced-area-enter-delivery.mov

2

Passed

PLK-ES-menu-reduced-area-cart.mov

Passed

BK-ES-menu-reduced-area-cart-load.mov

3

Failed

The reduced area message is NOT displayed.

If the user reloads the page, the message is displayed.

PLK-ES-cart-reduce-area-payment.mov

Failed

The reduced area message is NOT displayed.

If the user reloads the page, the message is displayed.

4

The user is already on the payment page with a delivery address out of the reduced area. The restaurant has the area reduced. When the user goes to confirm the payment:

BK-ES-reduced-area-payment-screen-loading.mov

4

Failed

The reduced area message is NOT displayed and the user is kept on the infinite loading payment.

If the user reloads the page, the message is displayed.

PLK-ES-payment-reduce-area-confirmation.mov

Failed

The reduced area message is NOT displayed and the user is kept on the infinite loading payment.

If the user reloads the page, the message is displayed.

BK-ES-reduced-area-after-payment-screen.mov