mirror of
https://github.com/Sea-Haven-Industries/seahaven-ap.git
synced 2026-10-04 04:13:13 +00:00
Merge branch 'feature/invoice-filter-toolbar' into feature/columns-slideover
This commit is contained in:
commit
56bfc5f84f
2 changed files with 6 additions and 5 deletions
|
|
@ -16,6 +16,7 @@ test.describe("Invoice Processing filters (AP-43)", () => {
|
||||||
await page.getByTestId("vendor-filter").fill("Harbor");
|
await page.getByTestId("vendor-filter").fill("Harbor");
|
||||||
await expect(page.getByTestId("filter-toggle").locator(".MuiBadge-badge")).toHaveText("2");
|
await expect(page.getByTestId("filter-toggle").locator(".MuiBadge-badge")).toHaveText("2");
|
||||||
await expect(grid.locator(".MuiDataGrid-row")).toHaveCount(1);
|
await expect(grid.locator(".MuiDataGrid-row")).toHaveCount(1);
|
||||||
|
await expect(page.getByTestId("tab-pending").locator("span").last()).toHaveText("1");
|
||||||
await expect(page.getByTestId("attention-banner")).toContainText(
|
await expect(page.getByTestId("attention-banner")).toContainText(
|
||||||
"1 invoices require approval. Show invoices ready to approve.",
|
"1 invoices require approval. Show invoices ready to approve.",
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ export function DashboardGrids() {
|
||||||
label={
|
label={
|
||||||
<InvoiceTabLabel
|
<InvoiceTabLabel
|
||||||
title="For My Attention"
|
title="For My Attention"
|
||||||
count={attentionRows.length}
|
count={filteredAttention.length}
|
||||||
active={tab === "attention"}
|
active={tab === "attention"}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
@ -191,7 +191,7 @@ export function DashboardGrids() {
|
||||||
label={
|
label={
|
||||||
<InvoiceTabLabel
|
<InvoiceTabLabel
|
||||||
title="New Invoices"
|
title="New Invoices"
|
||||||
count={invoices.length}
|
count={filteredAll.length}
|
||||||
active={tab === "all"}
|
active={tab === "all"}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
@ -202,7 +202,7 @@ export function DashboardGrids() {
|
||||||
label={
|
label={
|
||||||
<InvoiceTabLabel
|
<InvoiceTabLabel
|
||||||
title="Approved Invoices"
|
title="Approved Invoices"
|
||||||
count={approvedRows.length}
|
count={filteredApproved.length}
|
||||||
active={tab === "approved"}
|
active={tab === "approved"}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
@ -213,7 +213,7 @@ export function DashboardGrids() {
|
||||||
label={
|
label={
|
||||||
<InvoiceTabLabel
|
<InvoiceTabLabel
|
||||||
title="Rejected Invoices"
|
title="Rejected Invoices"
|
||||||
count={rejectedRows.length}
|
count={filteredRejected.length}
|
||||||
active={tab === "rejected"}
|
active={tab === "rejected"}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
@ -224,7 +224,7 @@ export function DashboardGrids() {
|
||||||
label={
|
label={
|
||||||
<InvoiceTabLabel
|
<InvoiceTabLabel
|
||||||
title="Late Invoices"
|
title="Late Invoices"
|
||||||
count={lateRows.length}
|
count={filteredLate.length}
|
||||||
active={tab === "late"}
|
active={tab === "late"}
|
||||||
urgency
|
urgency
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue