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 `admin/enterprise/token_domain_spec` to cuprite
Aaron Contrerasee25db398162
diff --git a/spec/features/admin/enterprise/token_domain_spec.rb b/spec/features/admin/enterprise/token_domain_spec.rbindex 846b02834b9..0b2499977b5 100644--- a/spec/features/admin/enterprise/token_domain_spec.rb+++ b/spec/features/admin/enterprise/token_domain_spec.rb@@ -28,7 +28,9 @@require 'spec_helper'-RSpec.describe 'Enterprise Edition token domain', js: true do+RSpec.describe 'Enterprise Edition token domain',+ js: true,+ with_cuprite: true dolet(:current_user) { create(:admin) }let(:ee_token) { Rails.root.join("spec/fixtures/ee_tokens/v2_1_user_localhost_3001.token").read }@@ -40,9 +42,11 @@ RSpec.describe 'Enterprise Edition token domain', js: true dobefore dovisit '/admin/enterprise'- fill_in "enterprise_token[encoded_token]", with: ee_token+ within '#new_enterprise_token' do+ fill_in "enterprise_token[encoded_token]", with: ee_token- click_on "Save"+ click_on "Save"+ endendend@@ -51,9 +55,6 @@ RSpec.describe 'Enterprise Edition token domain', js: true doit_behaves_like 'when uploading a token' doit 'saves the token' doexpect(body).to have_text 'Successful update.'- end-- it 'shows the token info' doexpect(page).to have_selector('[data-qa-selector="ee-active-trial-email"]', text: '[email protected]')endend@@ -81,9 +82,10 @@ RSpec.describe 'Enterprise Edition token domain', js: true dobefore doclick_on "Replace your current support token"- fill_in "enterprise_token[encoded_token]", with: new_token-- click_on "Save"+ within '#new_enterprise_token' do+ fill_in "enterprise_token[encoded_token]", with: new_token+ click_on "Save"+ endendend