From 0cc19c479f1f26f877edda83bd46afc01b54df99 Mon Sep 17 00:00:00 2001 From: Arnav Palnitkar Date: Thu, 2 Jun 2022 09:33:24 -0700 Subject: [PATCH] Fixed mfa method acceptance tests (#15756) --- ui/app/models/mfa-method.js | 4 ++-- ui/lib/core/addon/components/form-field.hbs | 5 +++-- ui/tests/acceptance/mfa-method-test.js | 10 ++++++++-- ui/tests/integration/components/form-field-test.js | 3 +-- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/ui/app/models/mfa-method.js b/ui/app/models/mfa-method.js index 8f0e983f1b..c6be20108d 100644 --- a/ui/app/models/mfa-method.js +++ b/ui/app/models/mfa-method.js @@ -145,14 +145,14 @@ export default class MfaMethod extends Model { @attr('number', { label: 'Digits', editType: 'radio', - possibleValues: ['6', '8'], + possibleValues: [6, 8], subText: 'The number digits in the generated TOTP code.', }) digits; @attr('number', { label: 'Skew', editType: 'radio', - possibleValues: ['0', '1'], + possibleValues: [0, 1], subText: 'The number of delay periods allowed when validating a TOTP token.', }) skew; diff --git a/ui/lib/core/addon/components/form-field.hbs b/ui/lib/core/addon/components/form-field.hbs index b1dbc4d893..b1b97bc661 100644 --- a/ui/lib/core/addon/components/form-field.hbs +++ b/ui/lib/core/addon/components/form-field.hbs @@ -27,12 +27,13 @@ -