IO-2327 job importing test cases

This commit is contained in:
swtmply
2023-07-21 04:25:53 +08:00
parent 6562fd57df
commit 835b90bc4b
16 changed files with 9536 additions and 51 deletions

View File

@@ -108,6 +108,7 @@ export function JobTotalsTableTotals({ bodyshop, job }) {
return (
<Table
data-cy="job-totals-table"
columns={columns}
rowKey="key"
showHeader={false}

View File

@@ -218,6 +218,7 @@ export function JobsAvailableComponent({
extra={
<Space wrap>
<Button
data-cy="refetch-available-jobs-button"
onClick={() => {
refetch();
}}

View File

@@ -190,6 +190,7 @@ export default function JobsFindModalComponent({
/>
<Divider />
<Checkbox
data-cy="override-header-checkbox"
defaultChecked={importOptions.overrideHeader}
onChange={(e) =>
setImportOptions({

View File

@@ -172,4 +172,9 @@ const client = new ApolloClient({
},
},
});
if (window.Cypress) {
window.graphqlClient = client;
}
export default client;