OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Switch `menu_items/wiki_menu_item_spec` to cuprite
Aaron Contreras8d750cb743b1
diff --git a/spec/features/menu_items/wiki_menu_item_spec.rb b/spec/features/menu_items/wiki_menu_item_spec.rbindex af66ae81ee1..48e5d30d314 100644--- a/spec/features/menu_items/wiki_menu_item_spec.rb+++ b/spec/features/menu_items/wiki_menu_item_spec.rb@@ -85,18 +85,16 @@ RSpec.describe 'Wiki menu items' doendend- it 'allows managing the menu item of a wiki page', js: true do+ it 'allows managing the menu item of a wiki page', js: true, with_cuprite: true doother_wiki_pageanother_wiki_pagevisit project_wiki_path(project, wiki_page)# creating the menu item with the pages name for the menu item- SeleniumHubWaiter.waitclick_link 'More'click_link 'Configure menu item'- SeleniumHubWaiter.waitchoose "Show as menu item in project navigation"click_button "Save"@@ -104,14 +102,12 @@ RSpec.describe 'Wiki menu items' doexpect(page).to have_selector('.main-menu--children-menu-header', text: wiki_page.title)- SeleniumHubWaiter.waitfind('.main-menu--arrow-left-to-project').clickexpect(page).to have_selector('.main-item-wrapper', text: wiki_page.title)# clicking the menu item leads to the page- SeleniumHubWaiter.waitclick_link wiki_page.titleexpect(page)@@ -119,11 +115,9 @@ RSpec.describe 'Wiki menu items' do# modifying the menu item to a different name and to be a subpage- SeleniumHubWaiter.waitclick_link 'More'click_link 'Configure menu item'- SeleniumHubWaiter.waitfill_in 'Name of menu item', with: 'Custom page name'choose "Show as submenu item of"@@ -139,14 +133,12 @@ RSpec.describe 'Wiki menu items' doexpect(page).to have_selector('.wiki-menu--sub-item', text: 'Custom page name')- SeleniumHubWaiter.waitclick_link 'Custom page name'expect(page).to have_current_path(project_wiki_path(project, wiki_page))# the submenu item is not visible on top level- SeleniumHubWaiter.waitfind('.main-menu--arrow-left-to-project').clickexpect(page)@@ -156,12 +148,12 @@ RSpec.describe 'Wiki menu items' dovisit project_wiki_path(project, wiki_page)click_link 'More'- click_link 'Delete'-- page.driver.browser.switch_to.alert.accept+ accept_alert do+ click_link 'Delete'+ endwithin '#menu-sidebar' do- expect(page).to have_no_content('Custom page name')+ expect(page).not_to have_content('Custom page name')end# removing the menu item which is also the last wiki menu item@@ -177,7 +169,6 @@ RSpec.describe 'Wiki menu items' doclick_button 'Save'# Because it is the last wiki menu item, the user is prompted to select another menu item- SeleniumHubWaiter.waitselect another_wiki_page.title, from: 'main-menu-item-select'click_button 'Save'