summaryrefslogtreecommitdiff
path: root/tests/browser/features/step_definitions/main_page_links_steps.rb
blob: c76fd2ba7b4323cceab93e1bdd95eb1777b80116 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Given(/^I open the main wiki URL$/) do
  visit(MainPage)
end

Then(/^I should see a link for View History$/) do
  on(MainPage).view_history_link_element.should be_visible
end

Then(/^I should see a link for Edit$/) do
  on(MainPage).edit_link_element.should be_visible
end

Then(/^I should see a link for Recent changes$/) do
  on(MainPage).recent_changes_link_element.should be_visible
end

Then(/^I should see a link for Random page$/) do
  on(MainPage).random_page_link_element.should be_visible
end

Then(/^I should see a link for Help$/) do
  on(MainPage).help_link_element.should be_visible
end

Then(/^I should see a link for What links here$/) do
  on(MainPage).what_links_here_link_element.should be_visible
end

Then(/^I should see a link for Related changes$/) do
  on(MainPage).related_changes_link_element.should be_visible
end

Then(/^I should see a link for Special pages$/) do
  on(MainPage).special_pages_link_element.should be_visible
end

Then(/^I should see a link for Printable version$/) do
  on(MainPage).printable_version_link_element.should be_visible
end

Then(/^I should see a link for Permanent link$/) do
  on(MainPage).permanent_link_link_element.should be_visible
end

Then(/^I should see a link for Page information$/) do
  on(MainPage).page_information_link_element.should be_visible
end