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 `modules/meeting` to cuprite
Aaron Contreras2c52e5aa4868
diff --git a/modules/meeting/spec/features/meetings_attachments_spec.rb b/modules/meeting/spec/features/meetings_attachments_spec.rbindex adb5cfb995d..c40dc3228e9 100644--- a/modules/meeting/spec/features/meetings_attachments_spec.rb+++ b/modules/meeting/spec/features/meetings_attachments_spec.rb@@ -1,7 +1,7 @@require 'spec_helper'require 'features/page_objects/notification'-RSpec.describe 'Add an attachment to a meeting (agenda)', js: true do+RSpec.describe 'Add an attachment to a meeting (agenda)', js: true, with_cuprite: false dolet(:role) docreate(:role, permissions: %i[view_meetings edit_meetings create_meeting_agendas])enddiff --git a/modules/meeting/spec/features/meetings_copy_spec.rb b/modules/meeting/spec/features/meetings_copy_spec.rbindex 514a5a6157a..3b9e9c209e2 100644--- a/modules/meeting/spec/features/meetings_copy_spec.rb+++ b/modules/meeting/spec/features/meetings_copy_spec.rb@@ -73,7 +73,6 @@ RSpec.describe 'Meetings copy', js: true doexpect(page).to have_link 'Copy'- SeleniumHubWaiter.waitclick_link 'Copy'end@@ -88,7 +87,6 @@ RSpec.describe 'Meetings copy', js: true doexpect(page).to have_field 'Time', with: "18:55"- SeleniumHubWaiter.waitclick_button "Create"# Be on the new meeting's page with copied over attributes@@ -117,14 +115,12 @@ RSpec.describe 'Meetings copy', js: true do.to have_content "Attendees:"# Copies the agenda- SeleniumHubWaiter.waitclick_link "Agenda"expect(page).to have_content agenda_text# Adds an entry to the history- SeleniumHubWaiter.waitclick_link "History"expect(page)diff --git a/modules/meeting/spec/features/meetings_delete_spec.rb b/modules/meeting/spec/features/meetings_delete_spec.rbindex fd079e69f59..608d13a151a 100644--- a/modules/meeting/spec/features/meetings_delete_spec.rb+++ b/modules/meeting/spec/features/meetings_delete_spec.rb@@ -54,22 +54,18 @@ RSpec.describe 'Meetings deletion' doit 'can delete own and other`s meetings' dovisit meetings_path(project)- SeleniumHubWaiter.waitclick_link meeting.title- SeleniumHubWaiter.wait- click_link "Delete"-- page.accept_confirm+ accept_confirm do+ click_link "Delete"+ endexpect(page).to have_current_path meetings_path(project)- SeleniumHubWaiter.waitclick_link other_meeting.title- SeleniumHubWaiter.wait- click_link "Delete"-- page.accept_confirm+ accept_confirm do+ click_link "Delete"+ endexpect(page).to have_content(I18n.t('.no_results_title_text', cascade: true))@@ -82,7 +78,7 @@ RSpec.describe 'Meetings deletion' docontext 'without permission to delete meetings' dolet(:permissions) { %i[view_meetings] }- it 'cannot delete own and other`s meetings' do+ it "cannot delete own and other's meetings" dovisit meetings_path(project)click_link meeting.titlediff --git a/modules/meeting/spec/features/meetings_locking_spec.rb b/modules/meeting/spec/features/meetings_locking_spec.rbindex 4d8e70e21bf..15f138ea4dd 100644--- a/modules/meeting/spec/features/meetings_locking_spec.rb+++ b/modules/meeting/spec/features/meetings_locking_spec.rb@@ -39,11 +39,8 @@ RSpec.describe 'Meetings locking', js: true doselector: '[data-qa-selector="op-meeting--meeting_agenda"]')end- current_user { user }-before dologin_as(user)-endit 'shows an error when trying to update a meeting update while editing' do@@ -55,7 +52,6 @@ RSpec.describe 'Meetings locking', js: true doagenda_field.set_value('Some new text')- SeleniumHubWaiter.waitagenda.text = 'blabla'agenda.save!diff --git a/modules/meeting/spec/features/meetings_new_spec.rb b/modules/meeting/spec/features/meetings_new_spec.rbindex 103d2a07bfb..798186bd2fe 100644--- a/modules/meeting/spec/features/meetings_new_spec.rb+++ b/modules/meeting/spec/features/meetings_new_spec.rb@@ -60,7 +60,7 @@ RSpec.describe 'Meetings new', js: true dologin_as(current_user)end- context 'with permission to create meetings' do+ context 'with permission to create meetings', with_cuprite: false dobefore doother_userenddiff --git a/modules/meeting/spec/features/meetings_show_spec.rb b/modules/meeting/spec/features/meetings_show_spec.rbindex e6550372546..1474048eb96 100644--- a/modules/meeting/spec/features/meetings_show_spec.rb+++ b/modules/meeting/spec/features/meetings_show_spec.rb@@ -75,7 +75,6 @@ RSpec.describe 'Meetings', js: true dovisit meeting_path(meeting)click_on 'History'- SeleniumHubWaiter.waitfind_by_id('version-1').clickexpect(page).to have_selector('[data-qa-selector="op-meeting--meeting_agenda"]', text: 'foo')diff --git a/spec/support/cuprite_setup.rb b/spec/support/cuprite_setup.rbindex 73f0a866d7a..b59533dd89c 100644--- a/spec/support/cuprite_setup.rb+++ b/spec/support/cuprite_setup.rb@@ -89,6 +89,7 @@ MODULES_WITH_CUPRITE_ENABLED = %w[avatarsbacklogsjob_status+ meeting].freezeRSpec.configure do |config|