diff options
author | Sukanya Pandey <sukapan1@in.ibm.com> | 2020-07-17 10:12:46 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2020-07-22 01:29:51 +0300 |
commit | 8d29eb4947a15b008dd825cb3abda6f462fdc201 (patch) | |
tree | c6848b2cc490f1f034c3309bd50bea1797178c25 /src/views/Control | |
parent | 076ab27f57c5adb34564908411c914c0ac300272 (diff) | |
download | webui-vue-8d29eb4947a15b008dd825cb3abda6f462fdc201.tar.xz |
Add test hooks to server power operations
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com>
Change-Id: Ie5d9ffe1bf6ce7850824344cf5c413666fb2071b
Diffstat (limited to 'src/views/Control')
-rw-r--r-- | src/views/Control/ServerPowerOperations/ServerPowerOperations.vue | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue b/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue index 441217f2..de377e11 100644 --- a/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue +++ b/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue @@ -40,7 +40,11 @@ {{ $t('pageServerPowerOperations.operationInProgress') }} </template> <template v-else-if="hostStatus === 'off'"> - <b-button variant="primary" @click="powerOn"> + <b-button + variant="primary" + data-test-id="serverPowerOperations-button-powerOn" + @click="powerOn" + > {{ $t('pageServerPowerOperations.powerOn') }} </b-button> </template> @@ -53,6 +57,7 @@ <b-form-radio v-model="form.rebootOption" name="reboot-option" + data-test-id="serverPowerOperations-radio-rebootOrderly" value="orderly" > {{ $t('pageServerPowerOperations.orderlyReboot') }} @@ -60,12 +65,17 @@ <b-form-radio v-model="form.rebootOption" name="reboot-option" + data-test-id="serverPowerOperations-radio-rebootImmediate" value="immediate" > {{ $t('pageServerPowerOperations.immediateReboot') }} </b-form-radio> </b-form-group> - <b-button variant="primary" type="submit"> + <b-button + variant="primary" + type="submit" + data-test-id="serverPowerOperations-button-reboot" + > {{ $t('pageServerPowerOperations.reboot') }} </b-button> </b-form> @@ -77,6 +87,7 @@ <b-form-radio v-model="form.shutdownOption" name="shutdown-option" + data-test-id="serverPowerOperations-radio-shutdownOrderly" value="orderly" > {{ $t('pageServerPowerOperations.orderlyShutdown') }} @@ -84,12 +95,17 @@ <b-form-radio v-model="form.shutdownOption" name="shutdown-option" + data-test-id="serverPowerOperations-radio-shutdownImmediate" value="immediate" > {{ $t('pageServerPowerOperations.immediateShutdown') }} </b-form-radio> </b-form-group> - <b-button variant="primary" type="submit"> + <b-button + variant="primary" + type="submit" + data-test-id="serverPowerOperations-button-shutDown" + > {{ $t('pageServerPowerOperations.shutDown') }} </b-button> </b-form> |