diff --git a/features/signup.feature b/features/signup.feature index fceac9d..662ee0b 100644 --- a/features/signup.feature +++ b/features/signup.feature @@ -31,19 +31,10 @@ Feature: signup @selenium Scenario: show error message if username is already used - Given I am on the homepage - When I follow "Login" - And I follow "New user" - And I fill in the following within ".no-boxes": - | e-Mail | josesilva@example.com | - | Username | josesilva | - | Password | secret | - | Password confirmation | secret | - | Full name | José da Silva | - And wait for the captcha signup time - And I press "Create my account" - Then I should receive an e-mail on josesilva@example.com - And I go to signup page + Given the following users + | login | + | josesilva | + When I go to signup page And I fill in "Username" with "josesilva" And I fill in "e-Mail" with "josesilva1" Then I should see "This login name is unavailable" diff --git a/public/javascripts/signup_form.js b/public/javascripts/signup_form.js index 65730a0..6923fd0 100644 --- a/public/javascripts/signup_form.js +++ b/public/javascripts/signup_form.js @@ -1,6 +1,6 @@ function verifyLoginLoad() { jQuery('#user_login').removeClass('available unavailable valid validated invalid checking').addClass('checking'); - jQuery('#url-check').html('
<%= _('Checking availability of login name...') %>
'); + jQuery('#url-check').html("<%= _('Checking availability of login name...') %>
"); } function verifyLoginAjax(value) { -- libgit2 0.21.2