mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
fix tests again
This commit is contained in:
parent
e077c7dbf6
commit
97d619ab51
3 changed files with 7 additions and 7 deletions
|
@ -16,7 +16,7 @@ Feature: Sign up
|
|||
Then I fill the sign up form with
|
||||
| Full name | Email | Password | Password confirmation | Team name |
|
||||
| Magnus | tusk@gmail.com | asdf1234 | asdf1234 | SpliceGirls |
|
||||
And I click "Sign up" button
|
||||
And I click on "Sign up"
|
||||
Then I should see "has already been taken"
|
||||
|
||||
@javascript
|
||||
|
@ -25,7 +25,7 @@ Feature: Sign up
|
|||
Then I fill the sign up form with
|
||||
| Full name | Email | Password | Password confirmation | Team name |
|
||||
| Magnus | magnus@gmail.com | asdf1234 | asdf1234 | SpliceGirls |
|
||||
And I click "Sign up" button
|
||||
And I click on "Sign up"
|
||||
Then I should see "SpliceGirls"
|
||||
And I should be on homepage
|
||||
|
||||
|
@ -35,7 +35,7 @@ Feature: Sign up
|
|||
Then I fill the sign up form with
|
||||
| Full name | Email | Password | Password confirmation | Team name |
|
||||
| Magnus | magnus@gmail.com | asdf1234 | asdf1234567 | SpliceGirls |
|
||||
And I click "Sign up" button
|
||||
And I click on "Sign up"
|
||||
Then I should see "doesn't match Password"
|
||||
|
||||
@javascript
|
||||
|
@ -44,5 +44,5 @@ Feature: Sign up
|
|||
Then I fill the sign up form with
|
||||
| Full name | Email | Password | Password confirmation |
|
||||
| Magnus | magnus@gmail.com | asdf1234 | asdf1234 |
|
||||
And I click "Sign up" button
|
||||
And I click on "Sign up"
|
||||
Then I should see "is too short (minimum is 2 characters)"
|
||||
|
|
|
@ -23,7 +23,7 @@ Scenario: Unsuccessful avatar image upload, file is too big
|
|||
Given I'm on the profile page
|
||||
Then I click on image within ".avatar-container" element
|
||||
And I attach a "Moon.png" file to "user_avatar" field
|
||||
And I click "Upload" button
|
||||
And I click on "Upload"
|
||||
And I should see "Your avatar file cannot be larger than 0.2 MB. (Please try again with a smaller file.)" error message
|
||||
|
||||
@javascript
|
||||
|
@ -31,7 +31,7 @@ Scenario: Unsuccessful avatar image upload, file is invalid
|
|||
Given I'm on the profile page
|
||||
Then I click on image within ".avatar-container" element
|
||||
And I attach a "File.txt" file to "user_avatar" field
|
||||
And I click "Upload" button
|
||||
And I click on "Upload"
|
||||
And I should see "Avatar content type is invalid" error message
|
||||
|
||||
@javascript
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
When(/^I click "(.+)" button$/) do |button|
|
||||
click_on(button)
|
||||
click_button(button)
|
||||
end
|
||||
|
||||
Given(/^Show me the page$/) do
|
||||
|
|
Loading…
Reference in a new issue