refactor: 💡 remove route-action usage for auth-methods (#2178)
* refactor: 💡 remove route-action usage for auth-methods ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12603
This commit is contained in:
1 parent
f65f483611
commit
148f2db941
22 files changed
+469
-276
No files matched your search
@@ -324,8 +324,11 @@ module('Acceptance | auth-methods | create', function (hooks) {
|
||||
instances.orgScope.primaryAuthMethodId,
|
||||
'Primary auth method is not yet set.',
|
||||
);
|
||||
await visit(urls.authMethod);
|
||||
await visit(urls.authMethods);
|
||||
|
||||
await click(`[href="${urls.authMethod}"]`);
|
||||
await click(MAKE_PRIMARY_SELECTOR);
|
||||
|
||||
const scope = this.server.schema.scopes.find(instances.orgScope.id);
|
||||
assert.strictEqual(
|
||||
scope.primaryAuthMethodId,
|
||||
@@ -363,7 +366,9 @@ module('Acceptance | auth-methods | create', function (hooks) {
|
||||
instances.orgScope.primaryAuthMethodId,
|
||||
'Primary auth method is set.',
|
||||
);
|
||||
await visit(urls.authMethod);
|
||||
await visit(urls.authMethods);
|
||||
|
||||
await click(`[href="${urls.authMethod}"]`);
|
||||
await click(MAKE_PRIMARY_SELECTOR);
|
||||
const scope = this.server.schema.scopes.find(instances.orgScope.id);
|
||||
assert.notOk(scope.primaryAuthMethodId, 'Primary auth method is unset.');
|
||||
@@ -389,8 +394,9 @@ module('Acceptance | auth-methods | create', function (hooks) {
|
||||
instances.orgScope.primaryAuthMethodId,
|
||||
instances.authMethod.id,
|
||||
);
|
||||
await visit(urls.authMethods);
|
||||
|
||||
await visit(urls.authMethod);
|
||||
await click(`[href="${urls.authMethod}"]`);
|
||||
await click(MAKE_PRIMARY_SELECTOR);
|
||||
|
||||
assert.dom(ERROR_MSG_SELECTOR).hasText('Sorry!');
|
||||
|
||||
Reference in new issue
Block a user