/
pseuds_special_characters.feature
167 lines (141 loc) · 6.58 KB
/
pseuds_special_characters.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
@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 ".navigation"
And I follow "Manage My Pseuds" within ".navigation"
And I follow "New Pseud" within ".navigation"
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"
When I follow "Back To Pseuds"
And I follow "people" within ".navigation"
Then I should see "Àlice and Bôb"
And I should see "special character name"
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 ".navigation"
And I follow "Manage My Pseuds" within ".navigation"
And I follow "New Pseud" within ".navigation"
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 ".navigation"
And I follow "Manage My Pseuds" within ".navigation"
And I follow "New Pseud" within ".navigation"
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 ".navigation"
And I follow "Manage My Pseuds" within ".navigation"
And I follow "New Pseud" within ".navigation"
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 ".navigation"
And I follow "Manage My Pseuds" within ".navigation"
And I follow "New Pseud" within ".navigation"
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 ".navigation"
And I follow "Manage My Pseuds" within ".navigation"
And I follow "New Pseud" within ".navigation"
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 ".navigation"
And I follow "Manage My Pseuds" within ".navigation"
And I follow "New Pseud" within ".navigation"
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 ".navigation"
And I follow "Manage My Pseuds" within ".navigation"
And I follow "New Pseud" within ".navigation"
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 ".navigation"
And I follow "Manage My Pseuds" within ".navigation"
And I follow "New Pseud" within ".navigation"
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 ".navigation"
And I follow "Manage My Pseuds" within ".navigation"
And I follow "New Pseud" within ".navigation"
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 ".navigation"
And I follow "Manage My Pseuds" within ".navigation"
And I follow "New Pseud" within ".navigation"
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 ".navigation"
And I follow "Manage My Pseuds" within ".navigation"
And I follow "New Pseud" within ".navigation"
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 ".navigation"
And I follow "Manage My Pseuds" within ".navigation"
And I follow "New Pseud" within ".navigation"
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"