As an editor, I want to remove a form
**Acceptance criteria:**
* A form can be removed via the UI
**Wireframes**
Wireframes for individuals features referencing the style guide components
UX - to prepare a style guide components for Wikidata
Click Here [TODO: add link] for Wireframe
**Happy Path:**
Given I am on the Lexeme page
And I have permissions to edit Lexeme
And a Form for the Lexeme exists
When I click on the Form’s edit button
And I see a delete button in the edit form block
Then I click delete
And I see //Removing...// message
And the form is deleted
And the removal shows up in the edit history with the summary
And SUMMARY NEEDS TO BE DEFINED BY PRODUCT
**Error Flows:**
Given I am on a Lexeme page
And I have permissions to edit Lexeme
And a Form for the Lexeme exists
When I click on the Form’s edit button
And I see a delete button in the edit form block
And I click delete
And I see //Removing...// message
And an error from error list 1 occurred
Then The Removing... message is hidden
And I see the Form is still there
And I see the Error Message bubble next TODO: define where it is
And the Error Message says ERROR MESSAGE FOR EACH ERROR
And the Delete button is still shown and can be clicked
Error List 1:
| Error Type
| Error Message
| Edit Conflict
| Rate Limit
| Read Only
| Token failure/Session Failure
| Abuse filter failure
| Unexpected exceptions
| Permissions
| Protected
|
Given I am on a Lexeme page
When I don’t have permissions to edit Lexeme
And a Form for the Lexeme exists
Then I don't see Form's edit button
Given I am on a Lexeme page
When The Lexeme is protected
And a Form for the Lexeme exists
Then I don't see Form's edit button