Last active
August 7, 2018 17:28
-
-
Save lynaghk/d059927e2692ece4e1ac75ae604d8238 to your computer and use it in GitHub Desktop.
# Test parallel spec.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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