Replace stats dropdown with a tabpanel #30
Annotations
3 errors
src/components/__tests__/StatsView.spec.ts > StatsView > renders current week by default:
src/components/__tests__/StatsView.spec.ts#L21
Error: Snapshot `StatsView > renders current week by default 1` mismatched
- Expected
+ Received
@@ -1,8 +1,8 @@
"<h1 data-v-a19ac338="" class="sr-only">Statistics</h1>
<button aria-hidden="true" style="position: fixed; height: 0px; padding: 0px; overflow: hidden; clip: rect(0px, 0px, 0px, 0px); white-space: nowrap; border-width: 0px;" type="button"></button>
- <div data-v-a19ac338="" role="tablist" aria-orientation="horizontal" class="grid grid-cols-5 gap-2"><button data-v-24e38f3d="" data-v-a19ac338="" class="button button--primary !bg-transparent justify-center" aria-label="This week's veggies" title="This week's veggies" data-test-id="stats-tab-0" id="headlessui-tabs-tab-v-0" role="tab" aria-selected="true" tabindex="0" data-headlessui-state="selected">
+ <div data-v-a19ac338="" role="tablist" aria-orientation="horizontal" class="grid grid-cols-5 gap-2"><button data-v-24e38f3d="" data-v-a19ac338="" class="button button--primary !bg-sky-700 justify-center" aria-label="This week's veggies" title="This week's veggies" data-test-id="stats-tab-0" id="headlessui-tabs-tab-v-0" role="tab" aria-selected="true" tabindex="0" data-headlessui-state="selected">
<!--v-if--><svg data-v-a19ac338="" style="width: 1.25rem; height: 1.25rem;" class="flex-shrink-0" viewBox="0 0 24 24" aria-hidden="true">
<path d="M5 3H6V1H8V3H16V1H18V3H19C20.11 3 21 3.89 21 5V19C21 20.1 20.11 21 19 21H5C3.9 21 3 20.11 3 19V5C3 3.89 3.9 3 5 3M5 19H19V9H5V19M5 7H19V5H5V7M17 11V13H7V11H17" class="transition-all"></path>
</svg>
</button><button data-v-24e38f3d="" data-v-a19ac338="" class="button button--primary justify-center" aria-label="Last five weeks" title="Last five weeks" data-test-id="stats-tab-1" id="headlessui-tabs-tab-v-1" role="tab" aria-selected="false" tabindex="-1" data-headlessui-state="">
<!--v-if--><svg data-v-a19ac338="" style="width: 1.25rem; height: 1.25rem;" class="flex-shrink-0" viewBox="0 0 24 24" aria-hidden="true">
❯ src/components/__tests__/StatsView.spec.ts:21:28
|
unit-tests
Process completed with exit code 1.
|
e2e-tests
Process completed with exit code 1.
|