Skip to content

Instantly share code, notes, and snippets.

@lynaghk
Last active August 7, 2018 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lynaghk/d059927e2692ece4e1ac75ae604d8238 to your computer and use it in GitHub Desktop.
Save lynaghk/d059927e2692ece4e1ac75ae604d8238 to your computer and use it in GitHub Desktop.
# Test parallel spec.
# Test parallel spec.
Search Inactive
touch search bar -> Search Active
Search Active&
touch cancel -> Search Inactive
touch result -> View Result
text input -> Loading
Input Focus
Input Focused
touch keyboard search button -> Input Unfocused
scroll -> Input Unfocused
Input Unfocused
touch input -> Input Focused
Results
Loading
Found Results?
results found -> Show Results
no results found -> No Results
no search string -> Suggested Results
still waiting -> Found Results?
time out -> Network Error
# Before the user types anything, let's offer some suggested results
# Maybe based on their location or past search history?
Suggested Results
# Once we have at least one autocomplete match, we can display results
Show Results
# Notify user if no results found
No Results
# If the network is unavailable, need to tell user and provide for retry
Network Error
touch retry -> Loading
View Result
function render(model){
console.log(model)
return $("h1", JSON.stringify(model.active_states.map(s => s.name)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment