Skip to content

Commit

Permalink
Correct AppNavigation snapshot to pass unit tests
Browse files Browse the repository at this point in the history
The commit "Add SNMP alerts page and test hooks"
(7c1cfe7) has added a new page to the
navigation, but didn't change the shanpshot. As a result this broke the
unit tests.
Perform "npx jest --updateSnapshot" to automatically correct the
AppNavigation snapshot.

Tested: Did npm run test:unit and it passed.

Change-Id: I9f9dbf235013d8736d958d5c8d19eb3d75c575ba
Signed-off-by: Konstantin Aladyshev <[email protected]>
Signed-off-by: Gunnar Mills <[email protected]>
  • Loading branch information
Kostr authored and gtmills committed Feb 29, 2024
1 parent 84b4f0b commit 2f7f657
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/unit/__snapshots__/AppNavigation.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,15 @@ exports[`AppNavigation.vue should render correctly 1`] = `
appNavigation.powerRestorePolicy
</a>
<a
class="nav-link"
data-test-id="nav-item-snmp-alerts"
href="#/settings/snmp-alerts"
>
appNavigation.snmpAlerts
</a>
</li>
</ul>
</transition-stub>
Expand Down Expand Up @@ -1132,6 +1141,15 @@ exports[`AppNavigation.vue should render with nav-container open 1`] = `
appNavigation.powerRestorePolicy
</a>
<a
class="nav-link"
data-test-id="nav-item-snmp-alerts"
href="#/settings/snmp-alerts"
>
appNavigation.snmpAlerts
</a>
</li>
</ul>
</transition-stub>
Expand Down

0 comments on commit 2f7f657

Please sign in to comment.