In general when we have a bug that can we addressed by unit tests, we should write tests soon after encountering the bug. This prevents similar issues from requiring manual QA to be revealed.
To keep an issue T219426 from occurring again here are tests we should attempt write:
Acceptance Criteria:
- In captions read mode, cancel/publish buttons are hidden
- In captions edit mode, cancel button is visible
- In captions edit mode, publish button is visible
- In captions edit mode, clicking cancel button with no edits in progress hides cancel/publish buttons
- In depicts read mode, cancel/publish buttons are hidden
- In depicts edit mode, cancel button is visible
- In depicts edit mode, publish button is visible
- In depicts edit mode, clicking cancel button with no edits in progress hides cancel/publish buttons