From d8dfbc511830aff5e3e3f01f94f91f292b606f44 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 9 Jul 2015 14:31:03 +0200 Subject: Improve readme tests Signed-off-by: Dmitriy Zaporozhets --- features/steps/project/project.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/features/steps/project/project.rb b/features/steps/project/project.rb index 9a451c19374..e8f9a80737f 100644 --- a/features/steps/project/project.rb +++ b/features/steps/project/project.rb @@ -86,12 +86,15 @@ class Spinach::Features::Project < Spinach::FeatureSteps end step 'I should see project "Forum" README' do - expect(page).to have_content 'Sample repo for testing gitlab features' + page.within('#README') do + expect(page).to have_content 'Sample repo for testing gitlab features' + end end step 'I should see project "Shop" README' do - expect(page).to have_link 'README.md' - expect(page).to have_content 'testme' + page.within('#README') do + expect(page).to have_content 'testme' + end end step 'I add project tags' do -- cgit v1.2.1