4teamwork / ftw.testbrowser

A testing browser for Plone.
http://ftwtestbrowser.readthedocs.io/
5 stars 1 forks source link

Also provide advice for available options in exception message. #34

Closed lukasgraf closed 8 years ago

lukasgraf commented 8 years ago

This adds the same behavior as for FormFieldNotFound to OptionsNotFound exceptions - telling the user what choices he has after yelling at him:

  File "ftw/testbrowser/widgets/sequence.py", line 73, in fill
    self.label.normalized_text(), values, available_options)

OptionsNotFound: Could not find options ['Coconut'] for field "Fruits". Options: "Apple", "Banana", "Orange"
jone commented 8 years ago

👍

lukasgraf commented 8 years ago

@jone fixed 😊

jone commented 8 years ago

Awesome, thanks!