Skip to content

Instantly share code, notes, and snippets.

@ryanlucas
Forked from lynaghk/SketchSystems.spec
Last active July 19, 2018 23:17
Show Gist options
  • Save ryanlucas/5bcfdc49bb2acbf154035c6687c275b4 to your computer and use it in GitHub Desktop.
Save ryanlucas/5bcfdc49bb2acbf154035c6687c275b4 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
Input Focus
Input Focused
touch keyboard search button -> Input Unfocused
scroll -> Input Unfocused
text input -> Loading
Input Unfocused
touch input -> Input Focused
Results
touch keyboard search button -> Loading
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){
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