IO-2327 job importing tests
This commit is contained in:
@@ -177,7 +177,10 @@ export function JobsAvailableComponent({
|
||||
>
|
||||
<PlusCircleFilled />
|
||||
</Button>
|
||||
<Button onClick={() => addJobAsSupp(record)}>
|
||||
<Button
|
||||
data-cy="add-job-as-supplement"
|
||||
onClick={() => addJobAsSupp(record)}
|
||||
>
|
||||
<DownloadOutlined />
|
||||
</Button>
|
||||
</>
|
||||
|
||||
@@ -167,6 +167,7 @@ export default function JobsFindModalComponent({
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
data-cy="existing-jobs-table"
|
||||
pagination={{ position: "bottom" }}
|
||||
columns={columns}
|
||||
rowKey="id"
|
||||
|
||||
@@ -77,7 +77,10 @@ export default connect(
|
||||
title={t("jobs.labels.existing_jobs")}
|
||||
width={"80%"}
|
||||
destroyOnClose
|
||||
okButtonProps={{ disabled: selectedJob ? false : true }}
|
||||
okButtonProps={{
|
||||
disabled: selectedJob ? false : true,
|
||||
"data-cy": "existing-jobs-ok-button",
|
||||
}}
|
||||
{...modalProps}
|
||||
>
|
||||
{loading ? <LoadingSpinner /> : null}
|
||||
|
||||
@@ -10,7 +10,7 @@ export default function LoadingSpinner({ loading = true, message, ...props }) {
|
||||
size="large"
|
||||
style={{
|
||||
position: "relative",
|
||||
alignContent: "center"
|
||||
alignContent: "center",
|
||||
}}
|
||||
delay={200}
|
||||
tip={message ? message : null}
|
||||
|
||||
@@ -82,6 +82,7 @@ export default function OwnerFindModalComponent({
|
||||
return (
|
||||
<div>
|
||||
<Table
|
||||
data-cy="existing-owner-table"
|
||||
pagination={{ position: "bottom" }}
|
||||
columns={columns}
|
||||
rowKey="id"
|
||||
|
||||
@@ -42,6 +42,8 @@ export default function OwnerFindModalContainer({
|
||||
<Modal
|
||||
title={t("owners.labels.existing_owners")}
|
||||
width={"80%"}
|
||||
okButtonProps={{ "data-cy": "existing-owners-ok-button" }}
|
||||
cancelButtonProps={{ "data-cy": "existing-owners-cancel-button" }}
|
||||
{...modalProps}
|
||||
>
|
||||
{loading ? <LoadingSpinner /> : null}
|
||||
|
||||
Reference in New Issue
Block a user