IO-2327 posting bills test caes

This commit is contained in:
swtmply
2023-06-26 10:34:33 +08:00
parent 12d07f8318
commit 39f7a3c870
12 changed files with 6155 additions and 12 deletions

View File

@@ -177,6 +177,7 @@ export function BillFormComponent({
]}
>
<VendorSearchSelect
className="ant-select-bill-vendor"
disabled={disabled}
options={vendorAutoCompleteOptions}
onSelect={handleVendorSelect}
@@ -249,7 +250,10 @@ export function BillFormComponent({
}),
]}
>
<Input disabled={disabled || disableInvNumber} />
<Input
data-cy="bill-form-invoice"
disabled={disabled || disableInvNumber}
/>
</Form.Item>
<Form.Item
label={t("bills.fields.date")}
@@ -261,7 +265,7 @@ export function BillFormComponent({
},
]}
>
<FormDatePicker disabled={disabled} />
<FormDatePicker id="bill-form-date" disabled={disabled} />
</Form.Item>
<Form.Item
label={t("bills.fields.is_credit_memo")}
@@ -303,6 +307,7 @@ export function BillFormComponent({
<Switch />
</Form.Item>
<Form.Item
data-cy="bill-form-bill-total"
label={t("bills.fields.total")}
name="total"
rules={[
@@ -456,19 +461,20 @@ export function BillFormComponent({
}}
>
<Upload.Dragger
id="bill-image-upload"
multiple={true}
name="logo"
beforeUpload={() => false}
listType="picture"
>
<>
<div>
<p className="ant-upload-drag-icon">
<UploadOutlined />
</p>
<p className="ant-upload-text">
Click or drag files to this area to upload.
</p>
</>
</div>
</Upload.Dragger>
</Form.Item>
</div>