UI: Replace buttons for HDS in component templates (#23698)

This commit is contained in:
Chelsea Shaw
2023-10-20 09:23:55 -05:00
committed by GitHub
parent 28e3b78e8e
commit 0c59d51e3a
93 changed files with 673 additions and 1004 deletions

View File

@@ -148,7 +148,9 @@ module('Integration | Component | mfa-form', function (hooks) {
// override to avoid authSuccess method since it expects an auth payload
async totpValidate(authData) {
await waitUntil(() =>
assert.dom('[data-test-mfa-validate]').hasClass('is-loading', 'Loading class applied to button')
assert
.dom('[data-test-mfa-validate] [data-test-icon="loading"]')
.exists('Loading icon shows on button')
);
assert.dom('[data-test-mfa-validate]').isDisabled('Button is disabled while loading');
assert.deepEqual(authData, expectedAuthData, 'Mfa auth data passed to validate method');