Feature: Modal Login Dialog
Goal: Create an accessible modal dialog
User Story
As a registered member of the site, I want to enter my credentials and be logged in so that I can begin using my special member features,
Scenario 1: I am on the homepage and want to launch the login dialog
- Given that I am on the homepage
- I see a login button
- When I gain focus on the login button
- I see a visible state change
- When I activate the login button
- I see a modal dialog appear
- And I see that there is a Close button
- And I see that the Close button has focus
- And I see that the Dialog has a heading of "Login"
- And I hear that I am on a dialog
- And I hear that the dialog is labelled Login
Scenario 2: The dialog is open and is truly modal
- Given that the modal dialog is open
- I see that there is a clear visual difference on the dialog vs. the rest of the page.
- When I strike the Tab key or the Shift+Tab keystroke
- I only get focus on items in the dialog
- When I use AT features to show page shortcut
- I only see a list of things inside the dialog
Scenario 3: The dialog is open but I don't want to use it
- Given that the modal dialog is open
- When I strike the escape key
- I see that the dialog has closed
- And focus is back at the Login Button
Scenario 4: The dialog is open and I want to log in
- Given that the modal dialog is open
- When I strike the tab key
- I see that the username gets focus
- And I can type in my username
- When I strike the tab key a second time
- I see that the password field gets focus
- And I can type in my password
- When I strike the tab key a third time
- I see that the Login Button gets focus
- When I strike the enter key
- I see that the dialog has closed
- And I am take to My Profile page