Add 3D filetype for STL files
[lhc/web/wiklou.git] / tests / browser / features / step_definitions / create_and_follow_wiki_link_steps.rb
1 Given(/^I go to the "(.+)" page with content "(.+)"$/) do |page_title, page_content|
2 @wikitext = page_content
3 api.create_page page_title, page_content
4 step "I am on the #{page_title} page"
5 end
6
7 Given(/^I am on the (.+) page$/) do |article|
8 article = article.gsub(/ /, '_')
9 visit(ZtargetPage, using_params: { article_name: article })
10 end
11
12 Given(/^I create page "(.*?)" with content "(.*?)"$/) do |page_title, page_content|
13 api.create_page page_title, page_content
14 end
15
16 When(/^I click the Link Target link$/) do
17 on(ZtargetPage).link_target_page_link
18 end
19
20 Then(/^I should be on the Link Target Test Page$/) do
21 expect(@browser.url).to match /Link_Target_Test_Page/
22 end
23
24 Then(/^the page content should contain "(.*?)"$/) do |content|
25 expect(on(ZtargetPage).page_content).to match content
26 end