summaryrefslogtreecommitdiff
path: root/features/steps/project/wiki.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-02-09 00:56:45 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-02-09 00:56:45 +0200
commitc466f389fa3a4b7fd758485f8d46f2131a991148 (patch)
tree6aa7d2aef7c6e14756bb24218b71740f5b65b8dc /features/steps/project/wiki.rb
parent997a317b4c3b6b379f398010f40dae490759275d (diff)
downloadgitlab-ce-c466f389fa3a4b7fd758485f8d46f2131a991148.tar.gz
Update tests to match new wiki header
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'features/steps/project/wiki.rb')
-rw-r--r--features/steps/project/wiki.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/features/steps/project/wiki.rb b/features/steps/project/wiki.rb
index 2a735afbe7b..223b7277b51 100644
--- a/features/steps/project/wiki.rb
+++ b/features/steps/project/wiki.rb
@@ -120,7 +120,7 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
step 'I should see the new wiki page form' do
expect(current_path).to match('wikis/image.jpg')
expect(page).to have_content('New Wiki Page')
- expect(page).to have_content('Edit Page image.jpg')
+ expect(page).to have_content('Edit Page')
end
step 'I create a New page with paths' do
@@ -159,7 +159,9 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
end
step 'I should see the page history' do
- expect(page).to have_content('History for')
+ page.within(:css, ".nav-text") do
+ expect(page).to have_content('History')
+ end
end
step 'I search for Wiki content' do