otwarchive-symphonyarchive/features/other_b/icon.feature
2026-03-11 22:22:11 +00:00

54 lines
1.8 KiB
Gherkin

@users
Feature: User icons
Scenario Outline: Users should be able to upload icons using an allowed image format
Given I am editing a pseud
When I attach an icon with the extension "<extension>"
And I press "Update"
Then I should see "Pseud was successfully updated"
And I should see the image "alt" text ""
Examples:
| extension |
| gif |
| jpg |
| png |
Scenario: Users should not be able to upload icons using the .bmp format
Given I am editing a pseud
When I attach an icon with the extension "bmp"
And I press "Update"
Then I should see "Sorry! We couldn't save this pseud because:"
And I should see "Icon content type is invalid"
Scenario: Users can change alt text
Given I have an icon uploaded
When I follow "Edit Pseud"
And I fill in "pseud_icon_alt_text" with "Some test description"
And I press "Update"
Then I should see the image "alt" text "Some test description"
Scenario: Add and remove a collection icon
Given I have a collection "Pretty"
When I add an icon to the collection "Pretty"
Then I should see "Collection was successfully updated"
And the "Pretty" collection should have an icon
When I delete the icon from the collection "Pretty"
Then I should see "Collection was successfully updated."
And the "Pretty" collection should not have an icon
Scenario: Users can delete icon and alt text
Given I have an icon uploaded
When I follow "Edit Pseud"
And I fill in "pseud_icon_alt_text" with "Some test description"
And I press "Update"
Then I should see the image "alt" text "Some test description"
When I delete the icon from my pseud
Then I should see "Pseud was successfully updated."
When I follow "Edit Pseud"
Then I should see the icon and alt text boxes are blank