mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-07 16:19:01 +00:00
test(work-orders): align merge fixes with severity field and WO# placeholder
This commit is contained in:
parent
e5844505fe
commit
90e69bfeb0
4 changed files with 5 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ describe("NewWoWizard duplicate wo number", () => {
|
|||
/>,
|
||||
);
|
||||
|
||||
const woNumberInput = screen.getByPlaceholderText("e.g. 24818");
|
||||
const woNumberInput = screen.getByPlaceholderText("Leave blank for SH provisional number");
|
||||
fireEvent.change(woNumberInput, {
|
||||
target: { value: "12345678901" },
|
||||
});
|
||||
|
|
@ -74,7 +74,7 @@ describe("NewWoWizard duplicate wo number", () => {
|
|||
/>,
|
||||
);
|
||||
|
||||
const woNumberInput = screen.getByPlaceholderText("e.g. 24818");
|
||||
const woNumberInput = screen.getByPlaceholderText("Leave blank for SH provisional number");
|
||||
fireEvent.change(woNumberInput, {
|
||||
target: { value: "98765432109" },
|
||||
});
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ function baseInfo(overrides: Partial<WorkOrderTableRow> = {}): WorkOrderTableRow
|
|||
woNumber: "100",
|
||||
site: "SITE",
|
||||
type: "Emergency",
|
||||
severity: null,
|
||||
dispatcherId: "d1",
|
||||
dispatcherName: "Alex",
|
||||
scheduledOn: "2026-07-16",
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ function baseRow(overrides: Partial<WorkOrderTableRow> = {}): WorkOrderTableRow
|
|||
woNumber: "WO-42",
|
||||
site: "SEA1",
|
||||
type: "PM",
|
||||
severity: null,
|
||||
dispatcherId: "u1",
|
||||
dispatcherName: "Dispatcher",
|
||||
scheduledOn: "2026-07-20",
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ function row(overrides: Partial<WorkOrderTableRow> = {}): WorkOrderTableRow {
|
|||
woNumber: "1001",
|
||||
site: "SITE-A",
|
||||
type: "PM",
|
||||
severity: null,
|
||||
dispatcherId: "10",
|
||||
dispatcherName: "Alex",
|
||||
scheduledOn: "2026-07-16",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue