Fix step definitions

pull/6274/head
Wieland Lindenthal 7 years ago
parent 36e690932e
commit aa3e959f6d
  1. 4
      features/step_definitions/menu_steps.rb
  2. 4
      features/wiki/wiki_index.feature
  3. 2
      features/wiki/wiki_new_child.feature

@ -35,8 +35,8 @@ When /^I toggle the "([^"]+)" submenu$/ do |menu_name|
nodes.first.click if nodes.present?
end
Then /^there should be no menu item selected$/ do
page.should_not have_css('#main-menu .selected')
Then /^there should be no child menu item selected$/ do
page.should_not have_css('.main-menu--children .selected')
end
Then /^there should not be a main menu$/ do

@ -44,7 +44,7 @@ Feature: Viewing the wiki index page
Scenario: Visiting the wiki index page without a related page should show the overall index page and select no menu item
When I go to the wiki index page of the project called "project1"
Then I should see "Index by title" within "#content"
And there should be no menu item selected
And there should be no child menu item selected
Scenario: Visiting the wiki index page with a related page that has the index page option enabled on it's menu item should show the page and select the toc menu entry within the wiki menu item
Given the project "project1" has 1 wiki page with the following:
@ -59,4 +59,4 @@ Feature: Viewing the wiki index page
| title | ParentWikiPage |
When I go to the wiki index page below the "ParentWikiPage" page of the project called "project1"
Then I should see "Index by title" within "#content"
And there should be no menu item selected
And there should be no child menu item selected

@ -58,7 +58,7 @@ Feature: Viewing the wiki new child page
| title | ParentWikiPage |
When I go to the wiki new child page below the "ParentWikiPage" page of the project called "project1"
Then I should see "Wiki page" within "#content"
And there should be no menu item selected
And there should be no child menu item selected
Scenario: Visiting the wiki new child page with an invalid parent page
When I go to the wiki new child page below the "InvalidPage" page of the project called "project1"

Loading…
Cancel
Save