From a7ec6293c9b63a617aea2a0110edf33a6a3c9dbc Mon Sep 17 00:00:00 2001 From: Derick Montague Date: Thu, 25 Jun 2020 16:47:33 -0500 Subject: Add test hook data attributes - Add data-test-id test hooks to simplify the xpath queries needed to set up automation testing - Reduce the possibility of breaking automation tests when/if pages are updated Signed-off-by: Derick Montague Change-Id: Id046b17e9a0232b121c10cc38134e750a8782ed5 --- src/views/Login/Login.vue | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/views') diff --git a/src/views/Login/Login.vue b/src/views/Login/Login.vue index 3993800c..730c7a91 100644 --- a/src/views/Login/Login.vue +++ b/src/views/Login/Login.vue @@ -28,6 +28,7 @@ id="language" v-model="$i18n.locale" :options="languages" + data-test-id="login-select-language" > @@ -58,6 +60,7 @@ aria-describedby="login-error-alert password-required" :state="getValidationState($v.userInfo.password)" type="password" + data-test-id="login-input-password" @input="$v.userInfo.password.$touch()" > @@ -72,6 +75,7 @@ class="mt-5" type="submit" variant="primary" + data-test-id="login-button-submit" :disabled="disableSubmitButton" >{{ $t('pageLogin.logIn') }} -- cgit v1.2.3