mirror of
https://github.com/wahyd4/ocelots.git
synced 2026-08-09 04:56:21 +10:00
add more test to main preocess
This commit is contained in:
@@ -6,4 +6,7 @@ Feature: Main process of Ocelots
|
||||
Scenario: Go to home page
|
||||
Given I am an existing user
|
||||
When I login
|
||||
Then I see list of teams
|
||||
Then I see list of teams
|
||||
Then I should create a team
|
||||
Then I should quit that team
|
||||
Then I should join that team again
|
||||
@@ -8,4 +8,20 @@ end
|
||||
|
||||
Then /^I see list of teams$/ do
|
||||
should be_on TeamPage
|
||||
end
|
||||
|
||||
Then /^I should create a team$/ do
|
||||
click_link 'add team'
|
||||
fill_in 'Team Name', with: 'Test_team'
|
||||
fill_in 'URL', with: 'Test_URL'
|
||||
click_button 'Create'
|
||||
end
|
||||
|
||||
Then /^I should quit that team$/ do
|
||||
click_button 'Quit Team'
|
||||
end
|
||||
|
||||
Then /^I should join that team again$/ do
|
||||
visit '/teams/Test_URL'
|
||||
click_button 'Join Team'
|
||||
end
|
||||
Reference in New Issue
Block a user