Contents

User icons

@users

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 should not be able to upload collection icons using the .webp format

  • Given I have a collection "Pretty"
  • And I am logged in as "moderator"
  • And I am on "Pretty" collection's page
  • And I follow "Settings"
  • When I attach a "collection" icon with the extension "webp"
  • And I press "Update"
  • Then I should see "Sorry! We couldn't save this collection because:"
  • And I should see "Icon content type is invalid"

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

Scenario: Users should not be able to upload skin icons using the .bmp format

  • Given I am logged in as "SkinTeam"
  • When I set up the skin "good style"
  • And I attach a "skin" icon with the extension "bmp"
  • And I submit
  • Then I should see "Sorry! We couldn't save this skin because:"
  • And I should see "Icon content type is invalid"

Source: features/other_b/icon.feature at commit f09caa86, Otwarchive (GPL license).