Update tests to match new wiki header

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2016-02-09 00:56:45 +02:00
parent 997a317b4c
commit c466f389fa
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
4 changed files with 11 additions and 5 deletions

View file

@ -11,7 +11,7 @@
= @page.title.capitalize
%span.light
&middot;
Edit
Edit Page
.nav-controls
= render 'main_links'

View file

@ -97,7 +97,7 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
end
step "I should see a password error message" do
page.within '.alert' do
page.within '.alert-danger' do
expect(page).to have_content "Password confirmation doesn't match"
end
end

View file

@ -238,7 +238,11 @@ class Spinach::Features::ProjectSourceMarkdownRender < Spinach::FeatureSteps
step 'I see new wiki page named test' do
expect(current_path).to eq namespace_project_wiki_path(@project.namespace, @project, "test")
expect(page).to have_content "Edit Page test"
page.within(:css, ".nav-text") do
expect(page).to have_content "Test"
expect(page).to have_content "Edit Page"
end
end
When 'I go back to wiki page home' do

View file

@ -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