Last active
December 15, 2023 19:36
-
-
Save erikflowers/4515408 to your computer and use it in GitHub Desktop.
Example UX cucumber feature file/scenario
This file contains 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
Feature: This is for the user notification indicator that is up in the top right of the main meny bar. | |
Scenario: On the top right of the main menu the user should see a notification indicator | |
Given that the user is logged in | |
Then the notification box should be visible | |
Scenario: If the user has no notifications, they will see the notificaton box as grayed out with a zero in it | |
Given that the user is logged in | |
And they have no new notifications | |
And they have no inbox notifications | |
Then they will see the disabled state with a zero indicator | |
Scenario: If the user has no new notifications, the notification box will be grayed out with the number of inbox items in it | |
Given that the user is logged in | |
And they have no new notifications | |
And they have inbox notifications | |
Then they will see the disabled state with the number of inbox items | |
Scenario: If the user has new messages, the notification box will be red and show the number of new notifications in the box | |
etc.... | |
etc.... | |
Scenario: When the user clicks on the notification box, they will receive a dropdown menu showing "view new, mark all as read, go to inbox" | |
etc.... | |
etc.... | |
Scenario: If the user has no new messages, the "view new" option will be visible but disabled | |
etc.... | |
etc.... | |
Scenario: If a notification arrives while the user is logged in, the notification box will live update and bounce to indicate that there is a new message | |
etc.... | |
etc.... | |
Scenario: If the user is not logged in, the notification box will not be shown at all | |
etc.... | |
etc.... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just a quick, dirty, and questionably accurate cucumber .feature file. You should get the basic idea from it.