Skip to content

Commit

Permalink
chore: aligned snapshots with updated implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Zedel <[email protected]>
  • Loading branch information
mzedel committed Sep 25, 2023
1 parent 0fed58b commit 6bd051c
Show file tree
Hide file tree
Showing 11 changed files with 1,779 additions and 1,252 deletions.
65 changes: 37 additions & 28 deletions src/js/__snapshots__/main.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -55,42 +55,51 @@ exports[`Main Component renders correctly 1`] = `
/>
</a>
</div>
<div
class="MuiFormControl-root MuiTextField-root mui-j8sktw-MuiFormControl-root-MuiTextField-root-root"
<form
novalidate=""
>
<div
class="MuiInputBase-root MuiInput-root MuiInput-underline MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiInputBase-adornedStart mui-s15sbk-MuiInputBase-root-MuiInput-root"
class="MuiFormControl-root MuiTextField-root mui-j8sktw-MuiFormControl-root-MuiTextField-root-root"
>
<div
class="MuiInputAdornment-root MuiInputAdornment-positionStart MuiInputAdornment-standard MuiInputAdornment-sizeSmall mui-ittuaa-MuiInputAdornment-root"
class="MuiInputBase-root MuiInput-root MuiInput-underline MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiInputBase-adornedStart mui-s15sbk-MuiInputBase-root-MuiInput-root"
>
<span
class="notranslate"
>
</span>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-colorDisabled MuiSvgIcon-fontSizeSize mui-8zz2bg-MuiSvgIcon-root"
data-testid="SearchIcon"
focusable="false"
viewBox="0 0 24 24"
<div
class="MuiInputAdornment-root MuiInputAdornment-positionStart MuiInputAdornment-standard MuiInputAdornment-sizeSmall mui-ittuaa-MuiInputAdornment-root"
>
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
/>
</svg>
<span
class="notranslate"
>
</span>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-colorDisabled MuiSvgIcon-fontSizeSmall mui-10vv9h1-MuiSvgIcon-root"
data-testid="SearchIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
/>
</svg>
</div>
<input
aria-invalid="false"
class="MuiInputBase-input MuiInput-input MuiInputBase-inputSizeSmall MuiInputBase-inputAdornedStart mui-nqgi9r-MuiInputBase-input-MuiInput-input"
name="search"
placeholder="Search devices"
type="text"
value=""
/>
</div>
<input
aria-invalid="false"
class="MuiInputBase-input MuiInput-input MuiInputBase-inputSizeSmall MuiInputBase-inputAdornedStart mui-nqgi9r-MuiInputBase-input-MuiInput-input"
placeholder="Search devices"
type="text"
value=""
/>
</div>
</div>
<input
class="hidden"
type="submit"
/>
</form>
<div
class="flexbox center-aligned"
>
Expand Down
66 changes: 38 additions & 28 deletions src/js/components/__snapshots__/app.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ label+.emotion-2 {
flex-shrink: 0;
-webkit-transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
font-size: 1.1607rem;
color: rgba(0, 0, 0, 0.26);
}
Expand Down Expand Up @@ -1181,42 +1182,51 @@ label[data-shrink=false]+.MuiInputBase-formControl .emotion-5:focus::-ms-input-p
/>
</a>
</div>
<div
class="MuiFormControl-root MuiTextField-root emotion-1"
<form
novalidate=""
>
<div
class="MuiInputBase-root MuiInput-root MuiInput-underline MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiInputBase-adornedStart emotion-2"
class="MuiFormControl-root MuiTextField-root emotion-1"
>
<div
class="MuiInputAdornment-root MuiInputAdornment-positionStart MuiInputAdornment-standard MuiInputAdornment-sizeSmall emotion-3"
class="MuiInputBase-root MuiInput-root MuiInput-underline MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiInputBase-adornedStart emotion-2"
>
<span
class="notranslate"
>
</span>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-colorDisabled MuiSvgIcon-fontSizeSize emotion-4"
data-testid="SearchIcon"
focusable="false"
viewBox="0 0 24 24"
<div
class="MuiInputAdornment-root MuiInputAdornment-positionStart MuiInputAdornment-standard MuiInputAdornment-sizeSmall emotion-3"
>
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
/>
</svg>
<span
class="notranslate"
>
</span>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-colorDisabled MuiSvgIcon-fontSizeSmall emotion-4"
data-testid="SearchIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
/>
</svg>
</div>
<input
aria-invalid="false"
class="MuiInputBase-input MuiInput-input MuiInputBase-inputSizeSmall MuiInputBase-inputAdornedStart emotion-5"
id="mui-1"
name="search"
placeholder="Search devices"
type="text"
value=""
/>
</div>
<input
aria-invalid="false"
class="MuiInputBase-input MuiInput-input MuiInputBase-inputSizeSmall MuiInputBase-inputAdornedStart emotion-5"
id="mui-1"
placeholder="Search devices"
type="text"
value=""
/>
</div>
</div>
<input
class="hidden"
type="submit"
/>
</form>
<div
class="flexbox center-aligned"
>
Expand Down
88 changes: 56 additions & 32 deletions src/js/components/common/__snapshots__/devicenameinput.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -247,21 +247,21 @@ label[data-shrink=false]+.MuiInputBase-formControl .emotion-1:focus::-ms-input-p
-webkit-text-decoration: none;
text-decoration: none;
color: inherit;
text-align: center;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
font-size: 1.3929rem;
padding: 8px;
border-radius: 50%;
overflow: visible;
color: rgba(0, 0, 0, 0.54);
-webkit-transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
padding: 5px;
font-size: 1.0446rem;
font-size: 1.2rem;
color: rgba(0, 0, 0, 0.54);
font-family: Lato,sans-serif;
font-weight: 500;
font-size: 0.7545rem;
line-height: 1.75;
text-transform: uppercase;
min-width: 64px;
padding: 4px 5px;
border-radius: 4px;
-webkit-transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
color: #337a87;
border-radius: 2px;
font-size: 14px;
font-weight: bold;
padding: 10px 15px;
}
.emotion-3::-moz-focus-inner {
Expand All @@ -281,7 +281,9 @@ label[data-shrink=false]+.MuiInputBase-formControl .emotion-1:focus::-ms-input-p
}
.emotion-3:hover {
background-color: rgba(0, 0, 0, 0.04);
-webkit-text-decoration: none;
text-decoration: none;
background-color: rgba(51, 122, 135, 0.04);
}
@media (hover: none) {
Expand All @@ -291,11 +293,28 @@ label[data-shrink=false]+.MuiInputBase-formControl .emotion-1:focus::-ms-input-p
}
.emotion-3.Mui-disabled {
background-color: transparent;
color: rgba(0, 0, 0, 0.26);
}
.emotion-3:hover {
colors: #337a87;
}
.emotion-3.MuiButton-text {
color: rgba(10, 10, 11, 0.78);
}
.emotion-4 {
display: inherit;
margin-right: 8px;
margin-left: -2px;
}
.emotion-4>*:nth-of-type(1) {
font-size: 18px;
}
.emotion-5 {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
Expand All @@ -310,14 +329,13 @@ label[data-shrink=false]+.MuiInputBase-formControl .emotion-1:focus::-ms-input-p
-webkit-transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
font-size: 1.3929rem;
font-size: 1.25rem;
}
.emotion-4 iconButton {
.emotion-5 iconButton {
margin-right: 8px;
}
.emotion-5 {
.emotion-6 {
overflow: hidden;
pointer-events: none;
position: absolute;
Expand All @@ -344,23 +362,29 @@ label[data-shrink=false]+.MuiInputBase-formControl .emotion-1:focus::-ms-input-p
class="MuiInputAdornment-root MuiInputAdornment-positionEnd emotion-2"
>
<button
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeSmall emotion-3"
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeSmall MuiButton-textSizeSmall emotion-3"
style="padding: 5px;"
tabindex="0"
type="button"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium emotion-4"
data-testid="EditIcon"
focusable="false"
viewBox="0 0 24 24"
<span
class="MuiButton-startIcon MuiButton-iconSizeSmall emotion-4"
>
<path
d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"
/>
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium emotion-5"
data-testid="EditIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"
/>
</svg>
</span>
Edit
<span
class="MuiTouchRipple-root emotion-5"
class="MuiTouchRipple-root emotion-6"
/>
</button>
</div>
Expand Down
Loading

0 comments on commit 6bd051c

Please sign in to comment.