Fix snapshots

This commit is contained in:
jwu-fisker
2022-08-05 12:17:33 -07:00
parent f1388297c9
commit e67c3ff1c5
3 changed files with 252 additions and 11 deletions

View File

@@ -442,7 +442,7 @@ exports[`App Route / authenticated 1`] = `
>
Leaflet
</a>
| ©
| ©
<a
href="http://osm.org/copyright"
>
@@ -960,7 +960,7 @@ exports[`App Route /home authenticated 1`] = `
>
Leaflet
</a>
| ©
| ©
<a
href="http://osm.org/copyright"
>
@@ -2952,7 +2952,7 @@ exports[`App Route /package-deploy authenticated 1`] = `
<p
class="MuiTypography-root MuiTypography-body2"
>
Created
Created
7/1/2021 10:40:07 PM
.
</p>
@@ -8280,6 +8280,42 @@ exports[`App Route /vehicle-status authenticated 1`] = `
class="MuiTouchRipple-root"
/>
</button>
<button
aria-controls="tabpanel-3"
aria-selected="false"
class="MuiButtonBase-root MuiTab-root MuiTab-textColorInherit"
id="tab-3"
role="tab"
tabindex="-1"
type="button"
>
<span
class="MuiTab-wrapper"
>
Digital Twin
</span>
<span
class="MuiTouchRipple-root"
/>
</button>
<button
aria-controls="tabpanel-4"
aria-selected="false"
class="MuiButtonBase-root MuiTab-root MuiTab-textColorInherit"
id="tab-4"
role="tab"
tabindex="-1"
type="button"
>
<span
class="MuiTab-wrapper"
>
CAN Signals
</span>
<span
class="MuiTouchRipple-root"
/>
</button>
</div>
<span
class="PrivateTabIndicator-root-1509 PrivateTabIndicator-colorSecondary-1511 MuiTabs-indicator"
@@ -8320,14 +8356,14 @@ exports[`App Route /vehicle-status authenticated 1`] = `
<b>
VIN
</b>
:
:
FISKER123
</p>
<p>
<b>
Log Level
</b>
:
:
info
</p>
</div>
@@ -8341,35 +8377,35 @@ exports[`App Route /vehicle-status authenticated 1`] = `
<b>
Enabled
</b>
:
:
true
</p>
<p>
<b>
Max Memory Buffer Size
</b>
:
:
1
</p>
<p>
<b>
Enabled
</b>
:
:
true
</p>
<p>
<b>
Max Disk Buffer Size
</b>
:
:
2
</p>
<p>
<b>
Filters
</b>
:
:
3
</p>
</div>
@@ -8430,6 +8466,19 @@ exports[`App Route /vehicle-status authenticated 1`] = `
id="tabpanel-2"
role="tabpanel"
/>
<div
aria-labelledby="tab-3"
hidden=""
id="tabpanel-3"
role="tabpanel"
/>
<div
aria-labelledby="tab-4"
class="makeStyles-fullWidth-0"
hidden=""
id="tabpanel-4"
role="tabpanel"
/>
</div>
</main>
</main>

View File

@@ -0,0 +1,143 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`DigitalTwinTab Render 1`] = `
<div>
<div
data-testid="mocked-statusprovider"
>
<div
data-testid="mocked-userprovider"
>
<div
data-testid="mocked-vehicleprovider"
>
<div
class="makeStyles-paper-0 makeStyles-tableSize-0"
>
<h6
class="MuiTypography-root MuiTypography-h6"
style="padding-bottom: 10px;"
>
Digital Twin
</h6>
<div>
<b>
Connected
</b>
:
false
</div>
<div>
<p>
<b>
Battery
</b>
:
95%
</p>
<div
class="makeStyles-popupSection-0"
>
<h3>
Doors
</h3>
<p>
<b>
hood
</b>
:
closed
</p>
<p>
<b>
left_front
</b>
:
closed
</p>
<p>
<b>
left_rear
</b>
:
closed
</p>
<p>
<b>
right_front
</b>
:
closed
</p>
<p>
<b>
right_rear
</b>
:
closed
</p>
<p>
<b>
trunk
</b>
:
closed
</p>
</div>
<div
class="makeStyles-popupSection-0"
>
<h3>
Location
</h3>
<p>
<b>
altitude
</b>
:
17
</p>
<p>
<b>
longitude
</b>
:
-122.414°
</p>
<p>
<b>
latitude
</b>
:
37.764°
</p>
</div>
<div
class="makeStyles-popupSection-0"
>
<p>
<b>
Trex Version
</b>
:
1000000
</p>
</div>
<div
class="makeStyles-popupSection-0"
>
<p>
<b>
Updated at
</b>
:
7/26/2022 12:26:38 AM
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
`;

View File

@@ -83,6 +83,42 @@ exports[`CarStatus Render 1`] = `
class="MuiTouchRipple-root"
/>
</button>
<button
aria-controls="tabpanel-3"
aria-selected="false"
class="MuiButtonBase-root MuiTab-root MuiTab-textColorInherit"
id="tab-3"
role="tab"
tabindex="-1"
type="button"
>
<span
class="MuiTab-wrapper"
>
Digital Twin
</span>
<span
class="MuiTouchRipple-root"
/>
</button>
<button
aria-controls="tabpanel-4"
aria-selected="false"
class="MuiButtonBase-root MuiTab-root MuiTab-textColorInherit"
id="tab-4"
role="tab"
tabindex="-1"
type="button"
>
<span
class="MuiTab-wrapper"
>
CAN Signals
</span>
<span
class="MuiTouchRipple-root"
/>
</button>
</div>
<span
class="PrivateTabIndicator-root-64 PrivateTabIndicator-colorSecondary-66 MuiTabs-indicator"
@@ -120,7 +156,7 @@ exports[`CarStatus Render 1`] = `
<b>
VIN
</b>
:
:
</p>
</div>
<div
@@ -179,6 +215,19 @@ exports[`CarStatus Render 1`] = `
id="tabpanel-2"
role="tabpanel"
/>
<div
aria-labelledby="tab-3"
hidden=""
id="tabpanel-3"
role="tabpanel"
/>
<div
aria-labelledby="tab-4"
class="makeStyles-fullWidth-0"
hidden=""
id="tabpanel-4"
role="tabpanel"
/>
</div>
</div>
</div>