otwarchive-symphonyarchive/features/other_a/pseuds_special_characters.feature

163 lines
6.8 KiB
Gherkin
Raw Normal View History

2026-03-11 22:22:11 +00:00
@users
Feature: Pseuds
Scenario: creating pseud with unicode characters
Given I am logged in as "myself"
And I go to myself's user page
And I follow "Profile" within "div#dashboard ul.navigation.actions"
And I follow "Manage My Pseuds" within "div.user"
And I follow "New Pseud" within "div#main.pseuds-index"
And I fill in "Name" with "Àlice and Bôb"
And I fill in "Description" with "special character name"
And I fill in "Icon alt text" with "special Alice"
And I press "Create"
Then I should see "Pseud was successfully created."
When I follow "Edit Pseud"
Then I should see "Àlice and Bôb"
And I should not see "Alice"
Scenario: creating pseud with chinese characters
Given I am logged in as "myself" with password "password"
And I go to myself's user page
And I follow "Profile" within "div#dashboard ul.navigation.actions"
And I follow "Manage My Pseuds" within "div.user"
And I follow "New Pseud" within "div#main.pseuds-index"
And I fill in "Name" with ""
And I press "Create"
Then I should see "Pseud was successfully created."
When I follow "Edit Pseud"
Then I should see ""
Scenario: creating pseud with pinyin characters
Given I am logged in as "myself" with password "password"
And I go to myself's user page
And I follow "Profile" within "div#dashboard ul.navigation.actions"
And I follow "Manage My Pseuds" within "div.user"
And I follow "New Pseud" within "div#main.pseuds-index"
And I fill in "Name" with "Aì lì sī"
And I press "Create"
Then I should see "Pseud was successfully created."
When I follow "Edit Pseud"
Then I should see "Aì lì sī"
Scenario: creating pseud with japanese characters
Given I am logged in as "myself" with password "password"
And I go to myself's user page
And I follow "Profile" within "div#dashboard ul.navigation.actions"
And I follow "Manage My Pseuds" within "div.user"
And I follow "New Pseud" within "div#main.pseuds-index"
And I fill in "Name" with ""
And I press "Create"
Then I should see "Pseud was successfully created."
When I follow "Edit Pseud"
Then I should see ""
Scenario: creating pseud with russian characters
Given I am logged in as "myself" with password "password"
And I go to myself's user page
And I follow "Profile" within "div#dashboard ul.navigation.actions"
And I follow "Manage My Pseuds" within "div.user"
And I follow "New Pseud" within "div#main.pseuds-index"
And I fill in "Name" with "Алиса"
And I press "Create"
Then I should see "Pseud was successfully created."
When I follow "Edit Pseud"
Then I should see "Алиса"
Scenario: not creating pseuds with characters which break urls
Given I am logged in as "myself" with password "password"
And I go to myself's user page
And I follow "Profile" within "div#dashboard ul.navigation.actions"
And I follow "Manage My Pseuds" within "div.user"
And I follow "New Pseud" within "div#main.pseuds-index"
And I fill in "Name" with "Alice/Bob"
And I press "Create"
Then I should not see "Pseud was successfully created."
And I should see "can contain letters, numbers, spaces, underscores, and dashes"
Given I am logged in as "myself" with password "password"
And I go to myself's user page
And I follow "Profile" within "div#dashboard ul.navigation.actions"
And I follow "Manage My Pseuds" within "div.user"
And I follow "New Pseud" within "div#main.pseuds-index"
And I fill in "Name" with "Alice & Bob"
And I press "Create"
Then I should not see "Pseud was successfully created."
And I should see "can contain letters, numbers, spaces, underscores, and dashes"
Given I am logged in as "myself" with password "password"
And I go to myself's user page
And I follow "Profile" within "div#dashboard ul.navigation.actions"
And I follow "Manage My Pseuds" within "div.user"
And I follow "New Pseud" within "div#main.pseuds-index"
And I fill in "Name" with "Alice."
And I press "Create"
Then I should not see "Pseud was successfully created."
And I should see "can contain letters, numbers, spaces, underscores, and dashes"
Given I am logged in as "myself" with password "password"
And I go to myself's user page
And I follow "Profile" within "div#dashboard ul.navigation.actions"
And I follow "Manage My Pseuds" within "div.user"
And I follow "New Pseud" within "div#main.pseuds-index"
And I fill in "Name" with "Alice?"
And I press "Create"
Then I should not see "Pseud was successfully created."
And I should see "can contain letters, numbers, spaces, underscores, and dashes"
Given I am logged in as "myself" with password "password"
And I go to myself's user page
And I follow "Profile" within "div#dashboard ul.navigation.actions"
And I follow "Manage My Pseuds" within "div.user"
And I follow "New Pseud" within "div#main.pseuds-index"
And I fill in "Name" with "Alice#"
And I press "Create"
Then I should not see "Pseud was successfully created."
And I should see "can contain letters, numbers, spaces, underscores, and dashes"
Scenario: not creating pseuds with other characters we don't allow
Given I am logged in as "myself" with password "password"
And I go to myself's user page
And I follow "Profile" within "div#dashboard ul.navigation.actions"
And I follow "Manage My Pseuds" within "div.user"
And I follow "New Pseud" within "div#main.pseuds-index"
And I fill in "Name" with "Alice + Bob"
And I press "Create"
Then I should not see "Pseud was successfully created."
And I should see "can contain letters, numbers, spaces, underscores, and dashes"
Scenario: not creating pseuds with more characters we don't allow
Given I am logged in as "myself" with password "password"
And I go to myself's user page
And I follow "Profile" within "div#dashboard ul.navigation.actions"
And I follow "Manage My Pseuds" within "div.user"
And I follow "New Pseud" within "div#main.pseuds-index"
And I fill in "Name" with "Alice 'Bob'"
And I press "Create"
Then I should not see "Pseud was successfully created."
And I should see "can contain letters, numbers, spaces, underscores, and dashes"
Scenario: not creating pseuds with even more characters we don't allow
Given I am logged in as "myself" with password "password"
And I go to myself's user page
And I follow "Profile" within "div#dashboard ul.navigation.actions"
And I follow "Manage My Pseuds" within "div.user"
And I follow "New Pseud" within "div#main.pseuds-index"
And I fill in "Name" with "Alice (Bob)"
And I press "Create"
Then I should not see "Pseud was successfully created."
And I should see "can contain letters, numbers, spaces, underscores, and dashes"