From 7b8f3db86091817eb84ded97a00b1104bfd32ca1 Mon Sep 17 00:00:00 2001 From: Josh Krawczyk Date: Fri, 29 May 2020 09:45:05 -0400 Subject: [PATCH 1/5] More Vue Tests --- .../components/automation/PolicyChecksTab.vue | 72 +++- .../components/modals/checks/ScriptCheck.vue | 4 + web/src/store/store.js | 6 + .../unit/automation/automationmanager.spec.js | 24 +- web/tests/unit/automation/checksData.js | 102 +++++ web/tests/unit/automation/formmodal.spec.js | 234 +++++----- .../unit/automation/policycheckstab.spec.js | 398 ++++++++++++++++++ .../unit/automation/policytasksstab.spec.js | 1 + 8 files changed, 682 insertions(+), 159 deletions(-) create mode 100644 web/tests/unit/automation/checksData.js create mode 100644 web/tests/unit/automation/policycheckstab.spec.js create mode 100644 web/tests/unit/automation/policytasksstab.spec.js diff --git a/web/src/components/automation/PolicyChecksTab.vue b/web/src/components/automation/PolicyChecksTab.vue index efe6137e..7a048809 100644 --- a/web/src/components/automation/PolicyChecksTab.vue +++ b/web/src/components/automation/PolicyChecksTab.vue @@ -8,6 +8,7 @@ icon="fas fa-plus" label="Add Check" text-color="black" + ref="add" > @@ -62,6 +63,7 @@ push @click="onRefresh(checks.id)" icon="refresh" + ref="refresh" />