Skip to content

Instantly share code, notes, and snippets.

@kalyantm
Last active January 6, 2020 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kalyantm/110589c910f7a6664c0090f069e5b05f to your computer and use it in GitHub Desktop.
Save kalyantm/110589c910f7a6664c0090f069e5b05f to your computer and use it in GitHub Desktop.
PWA Login Screen SERP
PWA Login Screen SERP
Main Page*
click login -> Login Modal
Login Modal
click continue with facebook -> Facebook OAuth Flow
focus input email textbox -> Active TextBox
focus input password -> Active TextBox
click login button -> Try Login Flow
Facebook OAuth Flow
successful login -> Main Page
unsuccessful login -> FailureNotify
Active TextBox
canceled -> Login Modal
typed -> Form Input
Form Input
typing? -> Text Entry
Text Entry
done? -> Validate
Validate
error? -> ValidationErrorNotify
no error? -> Login Modal
ValidationErrorNotify
Loading
server accepts data -> Main Page
server rejects data -> FailureNotify
Try Login Flow
form validation successful -> Loading
form validation failure -> FailureNotify
FailureNotify
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment