Commit 87d4d93f authored by Clement Ho's avatar Clement Ho

Fix new menu spec

parent 5982dcdd
...@@ -66,7 +66,7 @@ feature 'Top Plus Menu', :js do ...@@ -66,7 +66,7 @@ feature 'Top Plus Menu', :js do
page.within '.header-content' do page.within '.header-content' do
find('.header-new-dropdown-toggle').click find('.header-new-dropdown-toggle').click
expect(page).to have_selector('.header-new.dropdown.open', count: 1) expect(page).to have_selector('.header-new.dropdown.show', count: 1)
find('.header-new-project-snippet a').click find('.header-new-project-snippet a').click
end end
...@@ -88,7 +88,7 @@ feature 'Top Plus Menu', :js do ...@@ -88,7 +88,7 @@ feature 'Top Plus Menu', :js do
page.within '.header-content' do page.within '.header-content' do
find('.header-new-dropdown-toggle').click find('.header-new-dropdown-toggle').click
expect(page).to have_selector('.header-new.dropdown.open', count: 1) expect(page).to have_selector('.header-new.dropdown.show', count: 1)
find('.header-new-group-project a').click find('.header-new-group-project a').click
end end
...@@ -156,7 +156,7 @@ feature 'Top Plus Menu', :js do ...@@ -156,7 +156,7 @@ feature 'Top Plus Menu', :js do
def click_topmenuitem(item_name) def click_topmenuitem(item_name)
page.within '.header-content' do page.within '.header-content' do
find('.header-new-dropdown-toggle').click find('.header-new-dropdown-toggle').click
expect(page).to have_selector('.header-new.dropdown.open', count: 1) expect(page).to have_selector('.header-new.dropdown.show', count: 1)
click_link item_name click_link item_name
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment