Skip to content

Instantly share code, notes, and snippets.

@nop33
Last active May 10, 2016 11:46
Show Gist options
  • Save nop33/ca26c574cad390328a620acd9b2a85f2 to your computer and use it in GitHub Desktop.
Save nop33/ca26c574cad390328a620acd9b2a85f2 to your computer and use it in GitHub Desktop.

Case #1:

  • Click venue field
    • First option should always be active
  • Click suggested option
    • Venue is highlighted
    • Focus remains on the field
  • Click room field
  • Click suggested option (from the same venue)
    • Room is highlighted
    • Focus remains on the field

Case #2:

  • Click venue field
    • First option should always be active
  • Click suggested option
    • Venue is highlighted
    • Focus remains on the field
  • Click room field
  • Click suggested option (from different venue)
    • Room is highlighted
    • Focus remains on room field
    • Venue get’s new highlighted value (corresponding to the selected room)

Case #3:

  • Click venue field
  • Type something
  • Click ‘just use’ option
    • No highlighting
    • Focus remains on the field
  • Repeat for room

Case #4:

  • Click room field
  • Click suggested option
    • Room is highlighted
    • Focus remains on room field
    • Venue field gets value if room is not ‘just-use'

Case #5:

  • Click on a prefilled field
  • Remove it’s value
  • Click outside
    • Room also clears if it’s value is highlighted

Case #6:

  • Click on a prefilled field
  • Remove it’s value
  • Press ESC
    • The field should receive it’s last value
    • Results close
    • Focus remains

Case #7:

  • Click on a prefilled field
  • Remove it’s value
  • Press TAB
    • The field should receive the value of the first active option
    • Focus moves

Case #8:

  • Click venue field
  • Press UP/DOWN keys
    • Should navigate the results

Case #9:

  • Click venue field
  • Press UP/DOWN keys
  • Press ENTER
    • Active option gets selected
    • Focus remains
    • Highlighting if not ‘just-use'
  • Click room field / Press TAB
    • Room results appear
    • Results should be re-order so that the venue’s rooms are first

Case #10:

  • Click venue field
  • Press UP/DOWN keys
  • Press TAB
    • Active option gets selected
    • Highlighting if not ‘just-use'
    • Focus moves to room field
    • Room results appear
    • Results should be re-order so that the venue’s rooms are first

Case #11:

  • Click venue field
  • Press UP/DOWN keys
  • Click outside
    • Active option gets selected
    • Highlighting if not ‘just-use'
    • Focus out

Case #12:

  • Click room field
  • Press UP/DOWN keys
  • Click outside
    • Active option gets selected
    • Highlighting if not ‘just-use' and venue not different
    • Focus out
    • Venue field gets value if room is not ‘just-use'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment