mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 13:16:28 +08:00
19 lines
389 B
Ruby
19 lines
389 B
Ruby
When(/^I click '(.+)' button$/) do |button|
|
|
click_on button
|
|
end
|
|
|
|
Then(/^I should be redirected to the homepage$/) do
|
|
current_path.should =~ /^\/$/
|
|
end
|
|
|
|
When(/^I click '(.+)' link$/) do |link|
|
|
click_link link
|
|
end
|
|
|
|
Then(/^I should see '(.+)'$/) do |text|
|
|
expect(page).to have_content(text)
|
|
end
|
|
|
|
Then(/^I should be on homepage$/) do
|
|
expect(page).to have_current_path(root_path)
|
|
end
|