@truedat/cx 8.7.0 → 8.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/configurations/components/Configuration.js +1 -1
- package/src/configurations/components/ConfigurationActions.js +2 -2
- package/src/configurations/components/ConfigurationCards.js +2 -2
- package/src/configurations/components/ConfigurationForm.js +3 -3
- package/src/configurations/components/ConfigurationRoutes.js +2 -2
- package/src/configurations/components/ConfigurationTokenLoader.js +1 -1
- package/src/configurations/components/Configurations.js +1 -1
- package/src/configurations/components/DynamicConfigurationForm.js +1 -1
- package/src/configurations/components/EditConfiguration.js +1 -1
- package/src/configurations/components/__tests__/ConfigurationCards.spec.js +3 -3
- package/src/configurations/reducers/__tests__/configuration.spec.js +4 -4
- package/src/configurations/reducers/__tests__/configurationLoading.spec.js +4 -4
- package/src/configurations/reducers/__tests__/configurationRedirect.spec.js +9 -9
- package/src/configurations/reducers/__tests__/configurationToken.spec.js +6 -6
- package/src/configurations/reducers/__tests__/configurationTokenLoading.spec.js +3 -3
- package/src/configurations/reducers/__tests__/configurations.spec.js +4 -4
- package/src/configurations/reducers/__tests__/configurationsLoading.spec.js +4 -4
- package/src/configurations/reducers/__tests__/systemConfigurations.spec.js +3 -3
- package/src/configurations/reducers/configurations.js +1 -1
- package/src/configurations/reducers/systemConfigurations.js +1 -1
- package/src/configurations/routines.js +1 -1
- package/src/configurations/sagas/__tests__/deleteConfiguration.spec.js +1 -1
- package/src/configurations/sagas/__tests__/fetchConfigurations.spec.js +3 -3
- package/src/configurations/sagas/__tests__/signConfiguration.spec.js +1 -1
- package/src/configurations/sagas/index.js +2 -2
- package/src/jobs/components/JobFilters.js +1 -1
- package/src/jobs/components/JobFiltersLoader.js +1 -1
- package/src/jobs/components/JobSelectedFilters.js +2 -2
- package/src/jobs/components/JobsLoader.js +2 -2
- package/src/jobs/components/JobsTable.js +1 -1
- package/src/jobs/components/__tests__/JobRow.spec.js +2 -2
- package/src/jobs/components/__tests__/JobsTable.spec.js +4 -4
- package/src/jobs/reducers/__tests__/job.spec.js +2 -2
- package/src/jobs/reducers/__tests__/jobActiveFilters.spec.js +11 -11
- package/src/jobs/reducers/__tests__/jobCount.spec.js +3 -3
- package/src/jobs/reducers/__tests__/jobFilters.spec.js +2 -2
- package/src/jobs/reducers/__tests__/jobFiltersLoading.spec.js +2 -2
- package/src/jobs/reducers/__tests__/jobQuery.spec.js +4 -4
- package/src/jobs/reducers/__tests__/jobSelectedFilter.spec.js +9 -9
- package/src/jobs/reducers/__tests__/jobs.spec.js +5 -5
- package/src/jobs/reducers/__tests__/jobsPageSize.spec.js +3 -3
- package/src/jobs/reducers/jobFilters.js +1 -1
- package/src/jobs/reducers/jobSelectedFilter.js +1 -1
- package/src/jobs/sagas/__tests__/fetchJob.spec.js +2 -2
- package/src/jobs/sagas/__tests__/fetchJobFilters.spec.js +5 -5
- package/src/jobs/sagas/__tests__/fetchJobs.spec.js +5 -5
- package/src/jobs/sagas/index.js +2 -2
- package/src/jobs/selectors/getJobAvailableFilters.js +2 -2
- package/src/jobs/selectors/getJobFilterTypes.js +1 -1
- package/src/jobs/selectors/getJobSelectedFilterActiveValues.js +1 -1
- package/src/jobs/selectors/getJobSelectedFilterValues.js +2 -2
- package/src/jobs/selectors/getJobSelectedFilters.js +1 -1
- package/src/jobs/selectors/jobColumnsSelector.js +1 -1
- package/src/jobs/selectors/jobRowsSelector.js +2 -2
- package/src/jobs/selectors/sourceJobColumnsSelector.js +1 -1
- package/src/messages/en.js +12 -7
- package/src/messages/es.js +12 -7
- package/src/messages/index.js +1 -1
- package/src/sources/components/NewJob.js +1 -1
- package/src/sources/components/SourceActions.js +2 -2
- package/src/sources/components/SourceConfiguration.js +1 -1
- package/src/sources/components/SourceForm.js +2 -2
- package/src/sources/components/SourceSelector.js +8 -8
- package/src/sources/components/Sources.js +1 -1
- package/src/sources/components/__tests__/SourceDetail.spec.js +1 -1
- package/src/sources/components/__tests__/SourceForm.spec.js +3 -3
- package/src/sources/components/__tests__/SourceSelector.spec.js +1 -1
- package/src/sources/components/__tests__/Sources.spec.js +4 -4
- package/src/sources/reducers/__tests__/sourceRedirect.spec.js +8 -8
- package/src/sources/reducers/__tests__/sourceUpdateStatus.spec.js +4 -4
- package/src/sources/sagas/createSource.js +1 -1
- package/src/sources/sagas/updateSource.js +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { render, waitForLoad } from "@truedat/test/render";
|
|
3
|
-
import { SourceDetail } from "../SourceDetail";
|
|
4
3
|
import {
|
|
5
4
|
SOURCE,
|
|
6
5
|
SOURCE_EDIT,
|
|
7
6
|
SOURCE_JOBS,
|
|
8
7
|
SOURCE_JOBS_NEW,
|
|
9
8
|
} from "@truedat/core/routes";
|
|
9
|
+
import { SourceDetail } from "../SourceDetail";
|
|
10
10
|
|
|
11
11
|
jest.mock("../../../jobs/components/Job", () => () => <div>Job</div>);
|
|
12
12
|
jest.mock("../../../jobs/components/JobLoader", () => () => (
|
|
@@ -104,7 +104,7 @@ describe("<SourceForm />", () => {
|
|
|
104
104
|
it("submits", async () => {
|
|
105
105
|
const rendered = render(
|
|
106
106
|
<SourceForm {...props} source={undefined} />,
|
|
107
|
-
renderOpts
|
|
107
|
+
renderOpts,
|
|
108
108
|
);
|
|
109
109
|
await waitForLoad(rendered);
|
|
110
110
|
|
|
@@ -114,13 +114,13 @@ describe("<SourceForm />", () => {
|
|
|
114
114
|
rendered.queryByText(/source.external_id/i).parentNode;
|
|
115
115
|
await user.type(
|
|
116
116
|
within(externalIdField).getByRole("textbox"),
|
|
117
|
-
"My External Id"
|
|
117
|
+
"My External Id",
|
|
118
118
|
);
|
|
119
119
|
|
|
120
120
|
const sourceTypeField =
|
|
121
121
|
rendered.queryByText(/type.selector.label/i).parentNode;
|
|
122
122
|
await user.click(
|
|
123
|
-
within(sourceTypeField).getByRole("option", { name: /app-admin/i })
|
|
123
|
+
within(sourceTypeField).getByRole("option", { name: /app-admin/i }),
|
|
124
124
|
);
|
|
125
125
|
|
|
126
126
|
await waitForLoad(rendered);
|
|
@@ -33,7 +33,7 @@ describe("<Sources />", () => {
|
|
|
33
33
|
it("matches the latest snapshot", async () => {
|
|
34
34
|
const { container, getByRole } = render(
|
|
35
35
|
<SourceSelector {...props} />,
|
|
36
|
-
renderOpts
|
|
36
|
+
renderOpts,
|
|
37
37
|
);
|
|
38
38
|
await waitFor(() => {
|
|
39
39
|
expect(getByRole("option", { name: /aaaa/i })).toBeTruthy();
|
|
@@ -38,7 +38,7 @@ describe("<Sources />", () => {
|
|
|
38
38
|
const rendered = render(<Sources />, renderOpts);
|
|
39
39
|
await waitForLoad(rendered);
|
|
40
40
|
await waitFor(() =>
|
|
41
|
-
expect(rendered.getByText(/sources.count/i)).toBeInTheDocument()
|
|
41
|
+
expect(rendered.getByText(/sources.count/i)).toBeInTheDocument(),
|
|
42
42
|
);
|
|
43
43
|
expect(rendered.container).toMatchSnapshot();
|
|
44
44
|
});
|
|
@@ -47,20 +47,20 @@ describe("<Sources />", () => {
|
|
|
47
47
|
const rendered = render(<Sources />, renderOpts);
|
|
48
48
|
await waitForLoad(rendered);
|
|
49
49
|
await waitFor(() =>
|
|
50
|
-
expect(rendered.getByText(/sources.count/i)).toBeInTheDocument()
|
|
50
|
+
expect(rendered.getByText(/sources.count/i)).toBeInTheDocument(),
|
|
51
51
|
);
|
|
52
52
|
expect(rendered.queryAllByRole("row")).toHaveLength(3); // 2 rows + header
|
|
53
53
|
|
|
54
54
|
const user = userEvent.setup({ delay: null });
|
|
55
55
|
await user.type(rendered.getByRole("textbox"), source1.externalId);
|
|
56
56
|
await waitFor(() =>
|
|
57
|
-
expect(rendered.getByText(/sources.count/i)).toBeInTheDocument()
|
|
57
|
+
expect(rendered.getByText(/sources.count/i)).toBeInTheDocument(),
|
|
58
58
|
);
|
|
59
59
|
expect(rendered.queryAllByRole("row")).toHaveLength(2); // 1 row + header
|
|
60
60
|
|
|
61
61
|
await user.type(rendered.getByRole("textbox"), "x");
|
|
62
62
|
await waitFor(() =>
|
|
63
|
-
expect(rendered.getByText(/sources.count/i)).toBeInTheDocument()
|
|
63
|
+
expect(rendered.getByText(/sources.count/i)).toBeInTheDocument(),
|
|
64
64
|
);
|
|
65
65
|
expect(rendered.queryAllByRole("row")).toHaveLength(1); // header only
|
|
66
66
|
});
|
|
@@ -20,7 +20,7 @@ describe("reducers: sourceRedirect", () => {
|
|
|
20
20
|
|
|
21
21
|
it("should handle the clearRedirect.TRIGGER action", () => {
|
|
22
22
|
expect(sourceRedirect("foo", { type: clearRedirect.TRIGGER })).toEqual(
|
|
23
|
-
initialState
|
|
23
|
+
initialState,
|
|
24
24
|
);
|
|
25
25
|
});
|
|
26
26
|
|
|
@@ -28,38 +28,38 @@ describe("reducers: sourceRedirect", () => {
|
|
|
28
28
|
expect(
|
|
29
29
|
sourceRedirect(
|
|
30
30
|
"foo",
|
|
31
|
-
createJob.success({ data: { external_id: "foo", source_id: id } })
|
|
32
|
-
)
|
|
31
|
+
createJob.success({ data: { external_id: "foo", source_id: id } }),
|
|
32
|
+
),
|
|
33
33
|
).toEqual("/sources/42/jobs/foo");
|
|
34
34
|
});
|
|
35
35
|
|
|
36
36
|
it("should handle the createSource.SUCCESS action", () => {
|
|
37
37
|
expect(
|
|
38
|
-
sourceRedirect("foo", createSource.success({ createSource: { id } }))
|
|
38
|
+
sourceRedirect("foo", createSource.success({ createSource: { id } })),
|
|
39
39
|
).toEqual("/sources/42");
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
it("should handle the deleteSource.SUCCESS action", () => {
|
|
43
43
|
expect(
|
|
44
|
-
sourceRedirect("foo", deleteSource.success({ deleteSource: { id } }))
|
|
44
|
+
sourceRedirect("foo", deleteSource.success({ deleteSource: { id } })),
|
|
45
45
|
).toEqual("/sources");
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
it("should handle the disableSource.SUCCESS action", () => {
|
|
49
49
|
expect(
|
|
50
|
-
sourceRedirect("foo", disableSource.success({ disableSource: { id } }))
|
|
50
|
+
sourceRedirect("foo", disableSource.success({ disableSource: { id } })),
|
|
51
51
|
).toEqual("/sources/42");
|
|
52
52
|
});
|
|
53
53
|
|
|
54
54
|
it("should handle the enableSource.SUCCESS action", () => {
|
|
55
55
|
expect(
|
|
56
|
-
sourceRedirect("foo", enableSource.success({ enableSource: { id } }))
|
|
56
|
+
sourceRedirect("foo", enableSource.success({ enableSource: { id } })),
|
|
57
57
|
).toEqual("/sources/42");
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
it("should handle the updateSource.SUCCESS action", () => {
|
|
61
61
|
expect(
|
|
62
|
-
sourceRedirect("foo", updateSource.success({ updateSource: { id } }))
|
|
62
|
+
sourceRedirect("foo", updateSource.success({ updateSource: { id } })),
|
|
63
63
|
).toEqual("/sources/42");
|
|
64
64
|
});
|
|
65
65
|
|
|
@@ -12,25 +12,25 @@ describe("reducers: sourceUpdateStatus", () => {
|
|
|
12
12
|
|
|
13
13
|
it("should handle the updateSource.TRIGGER action", () => {
|
|
14
14
|
expect(
|
|
15
|
-
sourceUpdateStatus(fooState, { type: updateSource.TRIGGER })
|
|
15
|
+
sourceUpdateStatus(fooState, { type: updateSource.TRIGGER }),
|
|
16
16
|
).toEqual("updating");
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
it("should handle the updateSource.SUCCESS action", () => {
|
|
20
20
|
expect(
|
|
21
|
-
sourceUpdateStatus(fooState, { type: updateSource.SUCCESS })
|
|
21
|
+
sourceUpdateStatus(fooState, { type: updateSource.SUCCESS }),
|
|
22
22
|
).toEqual("success");
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
it("should handle the updateSource.FAILURE action", () => {
|
|
26
26
|
expect(
|
|
27
|
-
sourceUpdateStatus(fooState, { type: updateSource.FAILURE })
|
|
27
|
+
sourceUpdateStatus(fooState, { type: updateSource.FAILURE }),
|
|
28
28
|
).toEqual("fail");
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
it("should handle the updateSource.FULFILL action", () => {
|
|
32
32
|
expect(
|
|
33
|
-
sourceUpdateStatus(fooState, { type: updateSource.FULFILL })
|
|
33
|
+
sourceUpdateStatus(fooState, { type: updateSource.FULFILL }),
|
|
34
34
|
).toEqual("none");
|
|
35
35
|
});
|
|
36
36
|
|