diff options
Diffstat (limited to 'spec/support/shared_examples/features/wiki/user_creates_wiki_page_shared_examples.rb')
-rw-r--r-- | spec/support/shared_examples/features/wiki/user_creates_wiki_page_shared_examples.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/support/shared_examples/features/wiki/user_creates_wiki_page_shared_examples.rb b/spec/support/shared_examples/features/wiki/user_creates_wiki_page_shared_examples.rb index dfad11f3170..6280a61f024 100644 --- a/spec/support/shared_examples/features/wiki/user_creates_wiki_page_shared_examples.rb +++ b/spec/support/shared_examples/features/wiki/user_creates_wiki_page_shared_examples.rb @@ -44,7 +44,7 @@ RSpec.shared_examples 'User creates wiki page' do click_link("link test") - expect(page).to have_content("Create New Page") + expect(page).to have_content("New Page") end it "shows non-escaped link in the pages list", :js do @@ -85,7 +85,7 @@ RSpec.shared_examples 'User creates wiki page' do expect(page).to have_current_path(wiki_page_path(wiki, "test"), ignore_query: true) page.within(:css, ".wiki-page-header") do - expect(page).to have_content("Create New Page") + expect(page).to have_content("New Page") end click_link("Home") @@ -97,7 +97,7 @@ RSpec.shared_examples 'User creates wiki page' do expect(page).to have_current_path(wiki_page_path(wiki, "api"), ignore_query: true) page.within(:css, ".wiki-page-header") do - expect(page).to have_content("Create") + expect(page).to have_content("New Page") end click_link("Home") @@ -109,7 +109,7 @@ RSpec.shared_examples 'User creates wiki page' do expect(page).to have_current_path(wiki_page_path(wiki, "raketasks"), ignore_query: true) page.within(:css, ".wiki-page-header") do - expect(page).to have_content("Create") + expect(page).to have_content("New Page") end end |