Skip to content

Commit

Permalink
chore: fix tests missing React import and snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Tethik committed Nov 15, 2023
1 parent e810ab6 commit d071268
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 20 deletions.
96 changes: 76 additions & 20 deletions app/src/components/model/board/__snapshots__/Board.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ exports[`Board renders Board 1`] = `
>
<svg
aria-hidden="true"
aria-label="Toggle pointer mode - allows you to select components"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
data-mui-internal-clone-element="true"
data-testid="HighlightAltIcon"
focusable="false"
viewBox="0 0 24 24"
Expand All @@ -51,7 +53,9 @@ exports[`Board renders Board 1`] = `
>
<svg
aria-hidden="true"
aria-label="Toggle pan mode - allows you move the diagram. Hint: you can also hold space"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
data-mui-internal-clone-element="true"
data-testid="PanToolIcon"
focusable="false"
viewBox="0 0 24 24"
Expand Down Expand Up @@ -117,14 +121,16 @@ exports[`Board renders Board 1`] = `
/>
</button>
<button
aria-pressed="false"
class="MuiButtonBase-root MuiToggleButton-root MuiToggleButton-sizeMedium MuiToggleButton-standard MuiToggleButtonGroup-grouped MuiToggleButtonGroup-groupedHorizontal css-ueukts-MuiButtonBase-root-MuiToggleButton-root"
class="MuiButtonBase-root MuiToggleButton-root MuiToggleButton-sizeMedium MuiToggleButton-standard css-ueukts-MuiButtonBase-root-MuiToggleButton-root"
tabindex="0"
type="button"
value="download-image"
>
<svg
aria-hidden="true"
aria-label="Download as image"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
data-mui-internal-clone-element="true"
data-testid="ScreenshotMonitorIcon"
focusable="false"
value="export-image"
Expand All @@ -141,16 +147,30 @@ exports[`Board renders Board 1`] = `
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</button>
<button
class="MuiButtonBase-root MuiToggleButton-root MuiToggleButton-sizeMedium MuiToggleButton-standard css-ueukts-MuiButtonBase-root-MuiToggleButton-root"
tabindex="0"
type="button"
value="add-component"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
data-testid="AddIcon"
focusable="false"
value="add-component"
viewBox="0 0 24 24"
>
<path
d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
/>
</svg>
<span
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</button>
</div>
</div>
<div
class="loading"
>
<div />
<div />
<div />
<div />
</div>
<div
class="active-users-overlay"
>
Expand All @@ -166,6 +186,14 @@ exports[`Board renders Board 1`] = `
/>
</div>
</div>
<div
class="loading"
>
<div />
<div />
<div />
<div />
</div>
</div>
</div>
</body>,
Expand Down Expand Up @@ -193,7 +221,9 @@ exports[`Board renders Board 1`] = `
>
<svg
aria-hidden="true"
aria-label="Toggle pointer mode - allows you to select components"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
data-mui-internal-clone-element="true"
data-testid="HighlightAltIcon"
focusable="false"
viewBox="0 0 24 24"
Expand All @@ -216,7 +246,9 @@ exports[`Board renders Board 1`] = `
>
<svg
aria-hidden="true"
aria-label="Toggle pan mode - allows you move the diagram. Hint: you can also hold space"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
data-mui-internal-clone-element="true"
data-testid="PanToolIcon"
focusable="false"
viewBox="0 0 24 24"
Expand Down Expand Up @@ -282,14 +314,16 @@ exports[`Board renders Board 1`] = `
/>
</button>
<button
aria-pressed="false"
class="MuiButtonBase-root MuiToggleButton-root MuiToggleButton-sizeMedium MuiToggleButton-standard MuiToggleButtonGroup-grouped MuiToggleButtonGroup-groupedHorizontal css-ueukts-MuiButtonBase-root-MuiToggleButton-root"
class="MuiButtonBase-root MuiToggleButton-root MuiToggleButton-sizeMedium MuiToggleButton-standard css-ueukts-MuiButtonBase-root-MuiToggleButton-root"
tabindex="0"
type="button"
value="download-image"
>
<svg
aria-hidden="true"
aria-label="Download as image"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
data-mui-internal-clone-element="true"
data-testid="ScreenshotMonitorIcon"
focusable="false"
value="export-image"
Expand All @@ -306,16 +340,30 @@ exports[`Board renders Board 1`] = `
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</button>
<button
class="MuiButtonBase-root MuiToggleButton-root MuiToggleButton-sizeMedium MuiToggleButton-standard css-ueukts-MuiButtonBase-root-MuiToggleButton-root"
tabindex="0"
type="button"
value="add-component"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
data-testid="AddIcon"
focusable="false"
value="add-component"
viewBox="0 0 24 24"
>
<path
d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
/>
</svg>
<span
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</button>
</div>
</div>
<div
class="loading"
>
<div />
<div />
<div />
<div />
</div>
<div
class="active-users-overlay"
>
Expand All @@ -331,6 +379,14 @@ exports[`Board renders Board 1`] = `
/>
</div>
</div>
<div
class="loading"
>
<div />
<div />
<div />
<div />
</div>
</div>
</div>,
"debug": [Function],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { Add } from "@mui/icons-material";
import {
ListItemText,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import { ScreenshotMonitor } from "@mui/icons-material";
import { ToggleButton, Tooltip } from "@mui/material";
import Konva from "konva";
Expand Down

0 comments on commit d071268

Please sign in to comment.