diff options
Diffstat (limited to 'features/step_definitions/clean_ui_steps.rb')
-rw-r--r-- | features/step_definitions/clean_ui_steps.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/features/step_definitions/clean_ui_steps.rb b/features/step_definitions/clean_ui_steps.rb new file mode 100644 index 0000000..5b4501b --- /dev/null +++ b/features/step_definitions/clean_ui_steps.rb @@ -0,0 +1,16 @@ +Then /^I should see instructions on becoming mentor for "([^\"]*)"$/ do |user| + When "I am on edit \"#{user}\" user page" + Then "I should see \"If you want to start or stop mentoring this recruit " + + "go back to show page for this user and click 'Start/Stop mentoring " + + "this recruit' button.\"" + + When 'I follow "show page for this user"' + Then "I should be on show \"#{user}\" user page" +end + +Then /^I should see explanation that I can't become mentor for "([^\"]*)"$/ do |user| + When "I am on edit \"#{user}\" user page" + Then "I should see \"You can not change mentor for this user (possible " + + "reasons are: you're not logged in, you don't have mentor role, " + + "someone else is mentor for this user).\"" +end |