diff --git a/app/seeders/oauth_applications_seeder.rb b/app/seeders/oauth_applications_seeder.rb index b8f88606db18..3dae4ae5db4d 100644 --- a/app/seeders/oauth_applications_seeder.rb +++ b/app/seeders/oauth_applications_seeder.rb @@ -52,7 +52,7 @@ def create_app OAuth::Applications::CreateService .new(user: User.system) .call( - enabled: true, + enabled: false, name: "OpenProject Mobile App", redirect_uri: "openprojectapp://oauth-callback", builtin: true, diff --git a/spec/features/admin/oauth/oauth_applications_management_spec.rb b/spec/features/admin/oauth/oauth_applications_management_spec.rb index fd7c4bbbb1c6..7d52221b373e 100644 --- a/spec/features/admin/oauth/oauth_applications_management_spec.rb +++ b/spec/features/admin/oauth/oauth_applications_management_spec.rb @@ -106,23 +106,23 @@ within_test_selector("op-admin-oauth--built-in-applications") do expect(page).to have_test_selector("op-admin-oauth--application", count: 1) expect(page).to have_link(text: "OpenProject Mobile App") - expect(page).to have_test_selector("op-admin-oauth--application-enabled-toggle-switch", text: "On") + expect(page).to have_test_selector("op-admin-oauth--application-enabled-toggle-switch", text: "Off") find_test_selector("op-admin-oauth--application-enabled-toggle-switch").click expect(page).not_to have_test_selector("op-admin-oauth--application-enabled-toggle-switch", text: "Loading") - expect(page).to have_test_selector("op-admin-oauth--application-enabled-toggle-switch", text: "Off") + expect(page).to have_test_selector("op-admin-oauth--application-enabled-toggle-switch", text: "On") app.reload expect(app).to be_builtin - expect(app).not_to be_enabled + expect(app).to be_enabled find_test_selector("op-admin-oauth--application-enabled-toggle-switch").click expect(page).not_to have_test_selector("op-admin-oauth--application-enabled-toggle-switch", text: "Loading") - expect(page).to have_test_selector("op-admin-oauth--application-enabled-toggle-switch", text: "On") + expect(page).to have_test_selector("op-admin-oauth--application-enabled-toggle-switch", text: "Off") app.reload expect(app).to be_builtin - expect(app).to be_enabled + expect(app).not_to be_enabled click_on "OpenProject Mobile App" end