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 Leaflet
</a> </a>
| © | ©
<a <a
href="http://osm.org/copyright" href="http://osm.org/copyright"
> >
@@ -960,7 +960,7 @@ exports[`App Route /home authenticated 1`] = `
> >
Leaflet Leaflet
</a> </a>
| © | ©
<a <a
href="http://osm.org/copyright" href="http://osm.org/copyright"
> >
@@ -2952,7 +2952,7 @@ exports[`App Route /package-deploy authenticated 1`] = `
<p <p
class="MuiTypography-root MuiTypography-body2" class="MuiTypography-root MuiTypography-body2"
> >
Created Created
7/1/2021 10:40:07 PM 7/1/2021 10:40:07 PM
. .
</p> </p>
@@ -8280,6 +8280,42 @@ exports[`App Route /vehicle-status authenticated 1`] = `
class="MuiTouchRipple-root" class="MuiTouchRipple-root"
/> />
</button> </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> </div>
<span <span
class="PrivateTabIndicator-root-1509 PrivateTabIndicator-colorSecondary-1511 MuiTabs-indicator" class="PrivateTabIndicator-root-1509 PrivateTabIndicator-colorSecondary-1511 MuiTabs-indicator"
@@ -8320,14 +8356,14 @@ exports[`App Route /vehicle-status authenticated 1`] = `
<b> <b>
VIN VIN
</b> </b>
: :
FISKER123 FISKER123
</p> </p>
<p> <p>
<b> <b>
Log Level Log Level
</b> </b>
: :
info info
</p> </p>
</div> </div>
@@ -8341,35 +8377,35 @@ exports[`App Route /vehicle-status authenticated 1`] = `
<b> <b>
Enabled Enabled
</b> </b>
: :
true true
</p> </p>
<p> <p>
<b> <b>
Max Memory Buffer Size Max Memory Buffer Size
</b> </b>
: :
1 1
</p> </p>
<p> <p>
<b> <b>
Enabled Enabled
</b> </b>
: :
true true
</p> </p>
<p> <p>
<b> <b>
Max Disk Buffer Size Max Disk Buffer Size
</b> </b>
: :
2 2
</p> </p>
<p> <p>
<b> <b>
Filters Filters
</b> </b>
: :
3 3
</p> </p>
</div> </div>
@@ -8430,6 +8466,19 @@ exports[`App Route /vehicle-status authenticated 1`] = `
id="tabpanel-2" id="tabpanel-2"
role="tabpanel" 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>
</main> </main>
</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" class="MuiTouchRipple-root"
/> />
</button> </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> </div>
<span <span
class="PrivateTabIndicator-root-64 PrivateTabIndicator-colorSecondary-66 MuiTabs-indicator" class="PrivateTabIndicator-root-64 PrivateTabIndicator-colorSecondary-66 MuiTabs-indicator"
@@ -120,7 +156,7 @@ exports[`CarStatus Render 1`] = `
<b> <b>
VIN VIN
</b> </b>
: :
</p> </p>
</div> </div>
<div <div
@@ -179,6 +215,19 @@ exports[`CarStatus Render 1`] = `
id="tabpanel-2" id="tabpanel-2"
role="tabpanel" 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> </div>
</div> </div>