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 `roles/create_spec` to cuprite
Aaron Contrerasdf124a9ec65e
diff --git a/spec/features/roles/create_spec.rb b/spec/features/roles/create_spec.rbindex d91e4c8f03d..94884f623c0 100644--- a/spec/features/roles/create_spec.rb+++ b/spec/features/roles/create_spec.rb@@ -28,7 +28,9 @@require 'spec_helper'-RSpec.describe 'Role creation', js: true do+RSpec.describe 'Role creation',+ js: true,+ with_cuprite: true dolet!(:admin) { create(:admin) }let!(:existing_role) { create(:role) }let!(:existing_workflow) { create(:workflow_with_default_status, role: existing_role, type:) }@@ -38,7 +40,7 @@ RSpec.describe 'Role creation', js: true doendbefore do- login_as(admin)+ login_as adminendit 'allows creating roles and handles errors' do@@ -48,7 +50,6 @@ RSpec.describe 'Role creation', js: true doclick_link 'Role'end- SeleniumHubWaiter.waitfill_in 'Name', with: existing_role.nameselect existing_role.name, from: 'Copy workflow from'check 'Edit work packages'@@ -59,7 +60,6 @@ RSpec.describe 'Role creation', js: true doexpect(page).to have_selector('.errorExplanation', text: 'Name has already been taken')- SeleniumHubWaiter.waitfill_in 'Name', with: 'New role name'# This will lead to an error as manage versions requires view versions@@ -71,7 +71,6 @@ RSpec.describe 'Role creation', js: true do.to have_selector('.errorExplanation',text: "Permissions need to also include 'View members' as 'Manage members' is selected.")- SeleniumHubWaiter.waitcheck 'View members'select existing_role.name, from: 'Copy workflow from'@@ -86,7 +85,6 @@ RSpec.describe 'Role creation', js: true doexpect(page).to have_selector('table td', text: 'New role name')- SeleniumHubWaiter.waitclick_link 'New role name'expect(page)@@ -113,7 +111,6 @@ RSpec.describe 'Role creation', js: true do# Workflow routes are not resource-oriented.visit(url_for(controller: :workflows, action: :edit, only_path: true))- SeleniumHubWaiter.waitselect 'New role name', from: 'Role'select type.name, from: 'Type'click_button 'Edit'