Commit 9d1c39c1b7c5bfc2e5b9859319c41991a7304f01
1 parent
d48af320
Exists in
master
and in
29 other branches
Removed unnecessary lines on test
Also fixed quotes on js (ActionItem3009)
Showing
2 changed files
with
5 additions
and
14 deletions
Show diff stats
features/signup.feature
@@ -31,19 +31,10 @@ Feature: signup | @@ -31,19 +31,10 @@ Feature: signup | ||
31 | 31 | ||
32 | @selenium | 32 | @selenium |
33 | Scenario: show error message if username is already used | 33 | Scenario: show error message if username is already used |
34 | - Given I am on the homepage | ||
35 | - When I follow "Login" | ||
36 | - And I follow "New user" | ||
37 | - And I fill in the following within ".no-boxes": | ||
38 | - | e-Mail | josesilva@example.com | | ||
39 | - | Username | josesilva | | ||
40 | - | Password | secret | | ||
41 | - | Password confirmation | secret | | ||
42 | - | Full name | José da Silva | | ||
43 | - And wait for the captcha signup time | ||
44 | - And I press "Create my account" | ||
45 | - Then I should receive an e-mail on josesilva@example.com | ||
46 | - And I go to signup page | 34 | + Given the following users |
35 | + | login | | ||
36 | + | josesilva | | ||
37 | + When I go to signup page | ||
47 | And I fill in "Username" with "josesilva" | 38 | And I fill in "Username" with "josesilva" |
48 | And I fill in "e-Mail" with "josesilva1" | 39 | And I fill in "e-Mail" with "josesilva1" |
49 | Then I should see "This login name is unavailable" | 40 | Then I should see "This login name is unavailable" |
public/javascripts/signup_form.js
1 | function verifyLoginLoad() { | 1 | function verifyLoginLoad() { |
2 | jQuery('#user_login').removeClass('available unavailable valid validated invalid checking').addClass('checking'); | 2 | jQuery('#user_login').removeClass('available unavailable valid validated invalid checking').addClass('checking'); |
3 | - jQuery('#url-check').html('<p><span class="checking"><%= _('Checking availability of login name...') %></span></p>'); | 3 | + jQuery('#url-check').html("<p><span class='checking'><%= _('Checking availability of login name...') %></span></p>"); |
4 | } | 4 | } |
5 | 5 | ||
6 | function verifyLoginAjax(value) { | 6 | function verifyLoginAjax(value) { |