summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSandeepa Singh <sandeepa.singh@ibm.com>2021-07-28 12:55:14 +0300
committerDerick Montague <derick.montague@ibm.com>2021-08-10 22:20:42 +0300
commit6dba4be6125c10210bafa030ac17737d3a9b28b8 (patch)
tree5256287eacb4b4d599b38a104e44d88dfeb89ced /tests
parentb440616c23b61166ae6d87839a70eec31bdca235 (diff)
downloadwebui-vue-6dba4be6125c10210bafa030ac17737d3a9b28b8.tar.xz
IA update: Add resource management section
This is the sixth commit for information architecture changes and has the following changes: - Resource management section has been added - Carbon icon used for resource management section is data--base--alt - Manage power usage page from operations has been moved to resource management - Manage power usage page has been updated to power page Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: If3feb994dbad19dd6cfb1507d976d09643c8e4d6
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/__snapshots__/AppNavigation.spec.js.snap174
1 files changed, 156 insertions, 18 deletions
diff --git a/tests/unit/__snapshots__/AppNavigation.spec.js.snap b/tests/unit/__snapshots__/AppNavigation.spec.js.snap
index d87d44ed..37609d39 100644
--- a/tests/unit/__snapshots__/AppNavigation.spec.js.snap
+++ b/tests/unit/__snapshots__/AppNavigation.spec.js.snap
@@ -323,15 +323,6 @@ exports[`AppNavigation.vue should render correctly 1`] = `
</a>
<a
class="nav-link"
- data-test-id="nav-item-manage-power-usage"
- href="#/operations/manage-power-usage"
- >
-
- appNavigation.managePowerUsage
-
- </a>
- <a
- class="nav-link"
data-test-id="nav-item-reboot-bmc"
href="#/operations/reboot-bmc"
>
@@ -580,6 +571,84 @@ exports[`AppNavigation.vue should render correctly 1`] = `
</ul>
</transition-stub>
</li>
+ <li
+ class="nav-item"
+ >
+ <button
+ aria-controls="resource-management"
+ aria-expanded="false"
+ class="btn btn-link collapsed"
+ data-test-id="nav-button-resource-management"
+ type="button"
+ >
+ <svg
+ aria-hidden="true"
+ fill="currentColor"
+ focusable="false"
+ height="16"
+ preserveAspectRatio="xMidYMid meet"
+ viewBox="0 0 32 32"
+ width="16"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M19 24H26V26H19zM19 20H26V22H19zM19 16H26V18H19zM6 24H13V26H6zM6 20H13V22H6z"
+ />
+ <path
+ d="M28,4H17a2.0023,2.0023,0,0,0-2,2v6H4a2.0023,2.0023,0,0,0-2,2V28a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2V6A2.0023,2.0023,0,0,0,28,4ZM15,28H4V14H15Zm2,0V6H28V28Z"
+ />
+ </svg>
+
+ appNavigation.resourceManagement
+
+ <svg
+ aria-hidden="true"
+ class="icon-expand"
+ fill="currentColor"
+ focusable="false"
+ height="16"
+ preserveAspectRatio="xMidYMid meet"
+ viewBox="0 0 16 16"
+ width="16"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M8 5L13 10 12.3 10.7 8 6.4 3.7 10.7 3 10z"
+ />
+ </svg>
+ </button>
+
+ <transition-stub
+ class="nav-item__nav"
+ css="true"
+ enteractiveclass="collapsing"
+ enterclass=""
+ entertoclass="collapse show"
+ leaveactiveclass="collapsing"
+ leaveclass="collapse show"
+ leavetoclass="collapse"
+ >
+ <ul
+ class="collapse"
+ id="resource-management"
+ style="display: none;"
+ >
+ <li
+ class="nav-item"
+ >
+ <a
+ class="nav-link"
+ data-test-id="nav-item-power"
+ href="#/resource-management/power"
+ >
+
+ appNavigation.power
+
+ </a>
+ </li>
+ </ul>
+ </transition-stub>
+ </li>
</ul>
</nav>
</div>
@@ -915,15 +984,6 @@ exports[`AppNavigation.vue should render with nav-container open 1`] = `
</a>
<a
class="nav-link"
- data-test-id="nav-item-manage-power-usage"
- href="#/operations/manage-power-usage"
- >
-
- appNavigation.managePowerUsage
-
- </a>
- <a
- class="nav-link"
data-test-id="nav-item-reboot-bmc"
href="#/operations/reboot-bmc"
>
@@ -1172,6 +1232,84 @@ exports[`AppNavigation.vue should render with nav-container open 1`] = `
</ul>
</transition-stub>
</li>
+ <li
+ class="nav-item"
+ >
+ <button
+ aria-controls="resource-management"
+ aria-expanded="false"
+ class="btn btn-link collapsed"
+ data-test-id="nav-button-resource-management"
+ type="button"
+ >
+ <svg
+ aria-hidden="true"
+ fill="currentColor"
+ focusable="false"
+ height="16"
+ preserveAspectRatio="xMidYMid meet"
+ viewBox="0 0 32 32"
+ width="16"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M19 24H26V26H19zM19 20H26V22H19zM19 16H26V18H19zM6 24H13V26H6zM6 20H13V22H6z"
+ />
+ <path
+ d="M28,4H17a2.0023,2.0023,0,0,0-2,2v6H4a2.0023,2.0023,0,0,0-2,2V28a2.0023,2.0023,0,0,0,2,2H28a2.0023,2.0023,0,0,0,2-2V6A2.0023,2.0023,0,0,0,28,4ZM15,28H4V14H15Zm2,0V6H28V28Z"
+ />
+ </svg>
+
+ appNavigation.resourceManagement
+
+ <svg
+ aria-hidden="true"
+ class="icon-expand"
+ fill="currentColor"
+ focusable="false"
+ height="16"
+ preserveAspectRatio="xMidYMid meet"
+ viewBox="0 0 16 16"
+ width="16"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M8 5L13 10 12.3 10.7 8 6.4 3.7 10.7 3 10z"
+ />
+ </svg>
+ </button>
+
+ <transition-stub
+ class="nav-item__nav"
+ css="true"
+ enteractiveclass="collapsing"
+ enterclass=""
+ entertoclass="collapse show"
+ leaveactiveclass="collapsing"
+ leaveclass="collapse show"
+ leavetoclass="collapse"
+ >
+ <ul
+ class="collapse"
+ id="resource-management"
+ style="display: none;"
+ >
+ <li
+ class="nav-item"
+ >
+ <a
+ class="nav-link"
+ data-test-id="nav-item-power"
+ href="#/resource-management/power"
+ >
+
+ appNavigation.power
+
+ </a>
+ </li>
+ </ul>
+ </transition-stub>
+ </li>
</ul>
</nav>
</div>