User story:
As an event participant, I want to know how I can hide the post-publication dialog, so that I can choose to opt out of seeing the dialog for events in which I do not need it or would find it annoying to see after every edit.
Acceptance criteria
If a user is registered for one event that is active:
- Given a user is registered for one active event,
- When the “Associate this edit with an event?” dialog is displayed,
- Then the dialog must show a footer with the text: “You can hide this message in your event preferences.”
- And the text “event preferences” must link to Special:RegisterForEvent for that event.
- Then the dialog must show a footer with the text: “You can hide this message in your event preferences.”
- When the “Associate this edit with an event?” dialog is displayed,
If a user is registered for more than one active event:
- Given a user is registered for more than one active event,
- When the dialog is displayed before the user has selected an event,
- Then the footer must read: “You can choose to hide this message after you select an event.”
- When the dialog is displayed before the user has selected an event,
- When the user selects an event from the list,
- Then the footer should update to display the text: “You can hide this message in your event preferences.”
- And the text “event preferences” must link to Special:RegisterForEvent for the selected event.
- Then the footer should update to display the text: “You can hide this message in your event preferences.”
- If the user changes their selected event,
- Then the footer link should update to that event's preferences.
Designs
| One active event | Multiple active events |

