openfoodnetwork icon indicating copy to clipboard operation
openfoodnetwork copied to clipboard

Admin, Enterprise Details: Fix country selection on business address panel

Open jibees opened this issue 2 years ago • 0 comments

What? Why?

Closes #9777

  • Actually should also solves many bugs on dependEnt-select also
  • correct some CSS alignment
Capture d’écran 2022-10-13 à 14 30 44

This probably needs some automatic specs since we didn't spot anything...

What should we test?

  1. As an admin, go to /admin/enterprises/[HUB_PERMALINK]/edit#!#business_details_panel
  2. Change country to a country that is not the first in the list
  3. See that state options did changed
  4. Select a state that is not the first on the list
  5. Save
  6. And then refresh the page, and see that country/state are well saved and are selected in the components.

Also Test everywhere the double selector country/state is present on admin section that when changing country, the options state also change

Also Business address could be different as address: (France/Haute-Garonne vs. France/Gers)

Capture d’écran 2022-10-13 à 15 14 53 Capture d’écran 2022-10-13 à 15 14 58

Release notes

Changelog Category: User facing changes

The title of the pull request will be included in the release notes.

Dependencies

Documentation updates

jibees avatar Oct 13 '22 12:10 jibees