Feat: implement coupons' functionaries #481
Annotations
4 errors and 1 warning
src/__test__/footer.test.tsx > Footer Component > dispatches submitForm action on valid input:
src/__test__/footer.test.tsx#L58
AssertionError: expected 'failed' to be 'succeeded' // Object.is equality
- Expected
+ Received
- succeeded
+ failed
❯ src/__test__/footer.test.tsx:58:46
|
src/__test__/footer.test.tsx > Footer Component > shows error message on API failure:
src/__test__/footer.test.tsx#L82
AssertionError: expected 'Network Error' to be 'Request failed with status code 400' // Object.is equality
- Expected
+ Received
- Request failed with status code 400
+ Network Error
❯ src/__test__/footer.test.tsx:82:43
|
src/__test__/dashBoard/dashboardHome.test.tsx > HomeDashboard > displays the correct number of buyers:
src/__test__/dashBoard/dashboardHome.test.tsx#L89
TestingLibraryElementError: Found multiple elements with the text: 0
Here are the matching elements:
Ignored nodes: comments, script, style
<div>
0
</div>
Ignored nodes: comments, script, style
<div>
0
</div>
Ignored nodes: comments, script, style
<div>
0
</div>
(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).
Ignored nodes: comments, script, style
<body>
<div>
<div
class="bg-dashgrey min-h-screen"
>
<div
class="rounded-md"
>
<div
class="md:flex items-center justify-between rounded-2xl bg-white p-4"
>
<div>
<p
class="text-dashgreytext text-sm"
>
Good Afternoon
,
</p>
<div
class="font-semibold text-2xl"
>
User
</div>
</div>
<div>
<img
alt="farmer"
src="/icons/farmer.svg"
/>
</div>
</div>
<div
class="mt-4 p-5 rounded-2xl bg-white"
>
<div
class="flex items-center justify-between"
>
<h1>
Total Sales Available
</h1>
<button
class="border flex items-center px-2 py-1 rounded-md"
type="submit"
>
<img
alt="Export"
src="/icons/ExportIcon.svg"
/>
Export
</button>
</div>
<p
class="text-dashgreytext text-sm mb-7"
>
Sales Summary
</p>
<div
class="grid md:grid-cols-4 gap-2"
>
<div
class="bg-salesbg p-4 rounded-xl"
>
<div
class="flex items-center gap-2 text-xl font-semibold py-4"
>
<div
class="bg-iconsales p-1 rounded-full w-8"
>
<img
alt="Sales"
src="/icons/SalesIcon.svg"
/>
</div>
<div>
<div>
0
$
</div>
</div>
</div>
<div
class="text-md font-medium text-dashgreytext"
>
Total Sales
</div>
<p
class="text-sm text-dashbordblue"
>
All Products Sales
</p>
</div>
<div
class="bg-orderbg p-4 rounded-xl"
>
<div
class="flex items-center gap-2 text-xl font-semibold py-4"
>
<div
class="bg-iconorder p-1 rounded-full w-8"
>
<img
alt="Order"
src="/icons/OrderIcon.svg"
/>
</div>
<div>
0
</div>
</div>
<div
class="text-md font-medium text-dashgreytext"
>
Total Order
</div>
<p
class="text-sm text-dashbordblue"
>
All Orders
</p>
</div>
<div
class="bg-psoldbg p-4 rounded-xl"
>
<div
class="flex items-center gap-2 text-xl font-semibold py-4"
>
<div
class="bg-psoldicon p-1 rounded-full w-8"
>
<img
alt="Product Sold"
src="/icons/DiscIcon.svg"
/>
</div>
<div>
0
</div>
</div>
<div
class="text-md fon
|
build (20.x)
Process completed with exit code 1.
|
build (20.x)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|