IO-2327 added some test cases on posting bills
This commit is contained in:
@@ -441,6 +441,7 @@ export function JobLinesComponent({
|
||||
</Tag>
|
||||
)}
|
||||
<Button
|
||||
data-cy="order-parts-inhouse-button"
|
||||
disabled={
|
||||
(job && !job.converted) ||
|
||||
(selectedLines.length > 0 ? false : true) ||
|
||||
|
||||
@@ -78,9 +78,13 @@ export function PartsOrderLineBackorderButton({
|
||||
<div>
|
||||
<Form form={form} onFinish={handleFinish}>
|
||||
<Form.Item name="eta">
|
||||
<FormDatePicker />
|
||||
<FormDatePicker className="backorder-date" />
|
||||
</Form.Item>
|
||||
<Button type="primary" onClick={() => form.submit()}>
|
||||
<Button
|
||||
data-cy="mark-for-backorder-button"
|
||||
type="primary"
|
||||
onClick={() => form.submit()}
|
||||
>
|
||||
{t("parts_orders.actions.backordered")}
|
||||
</Button>
|
||||
<Button onClick={() => setVisibility(false)}>Close</Button>
|
||||
@@ -95,7 +99,11 @@ export function PartsOrderLineBackorderButton({
|
||||
visible={visibility}
|
||||
disabled={disabled}
|
||||
>
|
||||
<Button loading={loading} onClick={handlePopover}>
|
||||
<Button
|
||||
data-cy="mark-backorder-button"
|
||||
loading={loading}
|
||||
onClick={handlePopover}
|
||||
>
|
||||
{isAlreadyBackordered
|
||||
? t("parts_orders.actions.receive")
|
||||
: t("parts_orders.actions.backordered")}
|
||||
|
||||
@@ -90,7 +90,10 @@ export function PartsOrderListTableComponent({
|
||||
const recordActions = (record, showView = false) => (
|
||||
<Space wrap>
|
||||
{showView && (
|
||||
<Button onClick={() => handleOnRowClick(record)}>
|
||||
<Button
|
||||
data-cy="view-part-order-button"
|
||||
onClick={() => handleOnRowClick(record)}
|
||||
>
|
||||
<EyeFilled />
|
||||
</Button>
|
||||
)}
|
||||
|
||||
@@ -321,7 +321,7 @@ export function PartsOrderModalComponent({
|
||||
</Space>
|
||||
}
|
||||
>
|
||||
<Input.TextArea rows={3} />
|
||||
<Input.TextArea rows={3} data-cy="part-order-comments" />
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item noStyle shouldUpdate>
|
||||
|
||||
@@ -362,7 +362,7 @@ export function PartsOrderModalContainer({
|
||||
cancelButtonProps={{ loading: saving }}
|
||||
destroyOnClose
|
||||
width="75%"
|
||||
forceRender
|
||||
// forceRender
|
||||
>
|
||||
{error ? <AlertComponent message={error.message} type="error" /> : null}
|
||||
<Form
|
||||
|
||||
Reference in New Issue
Block a user