Skip to content

Commit

Permalink
chore: update snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
d-rita committed Mar 4, 2024
1 parent 1dda658 commit 53e3472
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 42 deletions.
13 changes: 5 additions & 8 deletions src/components/DatePicker/__snapshots__/DatePicker.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,35 @@ exports[`matches snapshot 1`] = `
data-test="date-picker"
>
<label
class="jsx-2718078600 "
class="jsx-2904627559 "
data-test="date-picker-label"
for="file"
>
<span
class="jsx-2718078600"
class="jsx-2904627559"
>
Start date
</span>
</label>
<div
class="jsx-3111771310 "
class="jsx-3651602664 "
data-test="date-picker-content"
>
<div
class="jsx-2908043323 "
data-test="dhis2-uicore-box"
>
<div
class="jsx-3353877153 jsx-2133963083 input"
class="jsx-3353877153 jsx-3173911271 input"
data-test="dhis2-uicore-input"
>
<input
class="jsx-3353877153 jsx-2133963083 "
class="jsx-3353877153 jsx-3173911271 "
id="file"
name="file"
type="date"
value="2020-02-10"
/>
<div
class="jsx-3353877153 jsx-2133963083 status-icon"
/>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ exports[`matches snapshot 1`] = `
data-test="import-strip"
>
<div
class="jsx-71743532 start"
class="jsx-1994200789 start"
data-test="import-strip-button-strip"
>
<div
class="jsx-71743532 box"
class="jsx-1994200789 box"
>
<button
class="jsx-1937199209 dryRun primary"
class="jsx-441677069 dryRun primary"
data-test="import-strip-dry-run-btn"
type="submit"
>
Start dry run
</button>
</div>
<div
class="jsx-71743532 box"
class="jsx-1994200789 box"
>
<button
class="jsx-1937199209 secondary"
class="jsx-441677069 secondary"
data-test="import-strip-import-btn"
type="submit"
>
Expand All @@ -34,7 +34,7 @@ exports[`matches snapshot 1`] = `
</div>
</div>
<p
class="jsx-4256586228 "
class="jsx-4265152438 "
data-test="import-strip-help"
>
A dry run tests the import settings without importing any data
Expand Down
4 changes: 2 additions & 2 deletions src/components/Page/__snapshots__/Page.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ exports[`matches snapshot when not loading and a full summary task 1`] = `
</p>
</header>
<div
class="jsx-3536470681 preBody"
class="jsx-574779348 preBody"
data-test="dhis2-uicore-card"
>
<div
Expand Down Expand Up @@ -527,7 +527,7 @@ exports[`matches snapshot when not loading and a mini summary task 1`] = `
</p>
</header>
<div
class="jsx-3536470681 preBody"
class="jsx-574779348 preBody"
data-test="dhis2-uicore-card"
>
<div
Expand Down
54 changes: 33 additions & 21 deletions src/components/RadioGroup/__snapshots__/RadioGroup.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,36 +16,40 @@ exports[`matches snapshot 1`] = `
>
<div>
<label
class="jsx-869913229 "
class="jsx-3878022568 "
data-test="radio-group-format-a"
>
<input
checked=""
class="jsx-869913229"
class="jsx-3878022568"
name="format"
type="radio"
value="a"
/>
<div
class="jsx-869913229 icon"
class="jsx-3878022568 icon"
>
<svg
class="jsx-1260643562 jsx-1631270792 checked"
class="jsx-1260643562 jsx-1120332023 checked"
viewBox="0 0 18 18"
xmlns="http://www.w3.org/2000/svg"
>
<circle
class="jsx-1260643562 jsx-1631270792 background"
class="jsx-1260643562 jsx-1120332023 background"
cx="9"
cy="9"
r="9"
/>
<path
class="jsx-1260643562 jsx-1631270792 outer"
class="jsx-1260643562 jsx-1120332023 outer unchecked"
d="M9,0 C13.9705627,0 18,4.02943725 18,9 C18,13.9705627 13.9705627,18 9,18 C4.02943725,18 0,13.9705627 0,9 C0,4.02943725 4.02943725,0 9,0 Z M9,1 C4.581722,1 1,4.581722 1,9 C1,13.418278 4.581722,17 9,17 C13.418278,17 17,13.418278 17,9 C17,4.581722 13.418278,1 9,1 Z"
/>
<path
class="jsx-1260643562 jsx-1120332023 outer checked"
d="M9,18 C13.9705627,18 18,13.9705627 18,9 C18,4.02943725 13.9705627,0 9,0 C4.02943725,0 0,4.02943725 0,9 C0,13.9705627 4.02943725,18 9,18 Z M9,16 C5.13400675,16 2,12.8659932 2,9 C2,5.13400675 5.13400675,2 9,2 C12.8659932,2 16,5.13400675 16,9 C16,12.8659932 12.8659932,16 9,16 Z"
/>
<circle
class="jsx-1260643562 jsx-1631270792 inner"
class="jsx-1260643562 jsx-1120332023 inner"
cx="9"
cy="9"
r="5"
Expand All @@ -57,35 +61,39 @@ exports[`matches snapshot 1`] = `
</div>
<div>
<label
class="jsx-869913229 "
class="jsx-3878022568 "
data-test="radio-group-format-b"
>
<input
class="jsx-869913229"
class="jsx-3878022568"
name="format"
type="radio"
value="b"
/>
<div
class="jsx-869913229 icon"
class="jsx-3878022568 icon"
>
<svg
class="jsx-1260643562 jsx-1631270792 "
class="jsx-1260643562 jsx-1120332023 "
viewBox="0 0 18 18"
xmlns="http://www.w3.org/2000/svg"
>
<circle
class="jsx-1260643562 jsx-1631270792 background"
class="jsx-1260643562 jsx-1120332023 background"
cx="9"
cy="9"
r="9"
/>
<path
class="jsx-1260643562 jsx-1631270792 outer"
class="jsx-1260643562 jsx-1120332023 outer unchecked"
d="M9,0 C13.9705627,0 18,4.02943725 18,9 C18,13.9705627 13.9705627,18 9,18 C4.02943725,18 0,13.9705627 0,9 C0,4.02943725 4.02943725,0 9,0 Z M9,1 C4.581722,1 1,4.581722 1,9 C1,13.418278 4.581722,17 9,17 C13.418278,17 17,13.418278 17,9 C17,4.581722 13.418278,1 9,1 Z"
/>
<path
class="jsx-1260643562 jsx-1120332023 outer checked"
d="M9,18 C13.9705627,18 18,13.9705627 18,9 C18,4.02943725 13.9705627,0 9,0 C4.02943725,0 0,4.02943725 0,9 C0,13.9705627 4.02943725,18 9,18 Z M9,16 C5.13400675,16 2,12.8659932 2,9 C2,5.13400675 5.13400675,2 9,2 C12.8659932,2 16,5.13400675 16,9 C16,12.8659932 12.8659932,16 9,16 Z"
/>
<circle
class="jsx-1260643562 jsx-1631270792 inner"
class="jsx-1260643562 jsx-1120332023 inner"
cx="9"
cy="9"
r="5"
Expand All @@ -97,35 +105,39 @@ exports[`matches snapshot 1`] = `
</div>
<div>
<label
class="jsx-869913229 "
class="jsx-3878022568 "
data-test="radio-group-format-c"
>
<input
class="jsx-869913229"
class="jsx-3878022568"
name="format"
type="radio"
value="c"
/>
<div
class="jsx-869913229 icon"
class="jsx-3878022568 icon"
>
<svg
class="jsx-1260643562 jsx-1631270792 "
class="jsx-1260643562 jsx-1120332023 "
viewBox="0 0 18 18"
xmlns="http://www.w3.org/2000/svg"
>
<circle
class="jsx-1260643562 jsx-1631270792 background"
class="jsx-1260643562 jsx-1120332023 background"
cx="9"
cy="9"
r="9"
/>
<path
class="jsx-1260643562 jsx-1631270792 outer"
class="jsx-1260643562 jsx-1120332023 outer unchecked"
d="M9,0 C13.9705627,0 18,4.02943725 18,9 C18,13.9705627 13.9705627,18 9,18 C4.02943725,18 0,13.9705627 0,9 C0,4.02943725 4.02943725,0 9,0 Z M9,1 C4.581722,1 1,4.581722 1,9 C1,13.418278 4.581722,17 9,17 C13.418278,17 17,13.418278 17,9 C17,4.581722 13.418278,1 9,1 Z"
/>
<path
class="jsx-1260643562 jsx-1120332023 outer checked"
d="M9,18 C13.9705627,18 18,13.9705627 18,9 C18,4.02943725 13.9705627,0 9,0 C4.02943725,0 0,4.02943725 0,9 C0,13.9705627 4.02943725,18 9,18 Z M9,16 C5.13400675,16 2,12.8659932 2,9 C2,5.13400675 5.13400675,2 9,2 C12.8659932,2 16,5.13400675 16,9 C16,12.8659932 12.8659932,16 9,16 Z"
/>
<circle
class="jsx-1260643562 jsx-1631270792 inner"
class="jsx-1260643562 jsx-1120332023 inner"
cx="9"
cy="9"
r="5"
Expand Down
10 changes: 5 additions & 5 deletions src/components/Select/__snapshots__/Select.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,29 @@ exports[`matches snapshot 1`] = `
data-test="dhis2-uicore-box"
>
<div
class="jsx-2451184972 root"
class="jsx-114080822 root"
data-test="dhis2-uicore-singleselect"
>
<div
class="jsx-2451184972 root-input"
class="jsx-114080822 root-input"
>
<div
data-test="dhis2-uicore-select"
>
<div
class="jsx-3336622488 root"
class="jsx-1462515063 root"
data-test="dhis2-uicore-select-input"
tabindex="0"
>
<div
class="jsx-3336622488 root-children"
class="jsx-1462515063 root-children"
>
<div
class="jsx-2240447017 jsx-4123978364 root"
/>
</div>
<div
class="jsx-3336622488 root-right"
class="jsx-1462515063 root-right"
>
<svg
height="16"
Expand Down

0 comments on commit 53e3472

Please sign in to comment.