From 2adfdf6ef6e6d138c6fbf52809ddda604ab9b368 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Fri, 26 Mar 2021 17:51:33 -0400 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20disable=20primary=20aut?= =?UTF-8?q?h=20method=20feature=20for=20now?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/admin/config/environment.js | 2 +- ui/admin/tests/acceptance/auth-methods-test.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/admin/config/environment.js b/ui/admin/config/environment.js index 90be4e447..b59054b8d 100644 --- a/ui/admin/config/environment.js +++ b/ui/admin/config/environment.js @@ -85,7 +85,7 @@ module.exports = function (environment) { }, featureFlags: { - 'primary-auth-method': true, + 'primary-auth-method': false, }, }; diff --git a/ui/admin/tests/acceptance/auth-methods-test.js b/ui/admin/tests/acceptance/auth-methods-test.js index 27bbe2db2..e6ffacb4d 100644 --- a/ui/admin/tests/acceptance/auth-methods-test.js +++ b/ui/admin/tests/acceptance/auth-methods-test.js @@ -10,6 +10,7 @@ import { // //currentSession, // //invalidateSession, } from 'ember-simple-auth/test-support'; +import { enableFeature } from 'ember-feature-flags/test-support'; module('Acceptance | auth methods', function (hooks) { setupApplicationTest(hooks); @@ -277,6 +278,7 @@ module('Acceptance | auth methods', function (hooks) { instances.scopes.org.primaryAuthMethodId, 'Primary auth method is not yet set.' ); + enableFeature('primary-auth-method'); await visit(urls.authMethod); await click( '.rose-layout-page-actions .rose-dropdown-content [type="button"]:first-child' @@ -306,6 +308,7 @@ module('Acceptance | auth methods', function (hooks) { instances.scopes.org.primaryAuthMethodId, 'Primary auth method is not yet set.' ); + enableFeature('primary-auth-method'); await visit(urls.authMethod); await click( '.rose-layout-page-actions .rose-dropdown-content [type="button"]:first-child' @@ -322,6 +325,7 @@ module('Acceptance | auth methods', function (hooks) { instances.scopes.org.primaryAuthMethodId, 'Primary auth method is set.' ); + enableFeature('primary-auth-method'); await visit(urls.authMethod); await click( '.rose-layout-page-actions .rose-dropdown-content [type="button"]:first-child' @@ -350,6 +354,7 @@ module('Acceptance | auth methods', function (hooks) { instances.scopes.org.primaryAuthMethodId, 'Primary auth method is set.' ); + enableFeature('primary-auth-method'); await visit(urls.authMethod); await click( '.rose-layout-page-actions .rose-dropdown-content [type="button"]:first-child'