@truedat/lm 7.5.9 → 7.5.10
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/index.js +5 -0
- package/package.json +43 -67
- package/src/components/ConceptImplementationLink.js +1 -2
- package/src/components/ConceptLink.js +2 -3
- package/src/components/ConceptLinkTags.js +0 -1
- package/src/components/ConceptStructureLinkForm.js +3 -3
- package/src/components/ConfirmDeleteRelation.js +0 -1
- package/src/components/ImplementationLinkRow.js +0 -1
- package/src/components/ImplementationLinks.js +1 -2
- package/src/components/ImplementationRelationForm.js +5 -8
- package/src/components/LinksPane.js +0 -1
- package/src/components/NewRelationTag.js +0 -1
- package/src/components/RelationActions.js +3 -4
- package/src/components/RelationGraph.js +1 -1
- package/src/components/RelationGraphDepth.js +6 -3
- package/src/components/RelationRoutes.js +16 -25
- package/src/components/RelationRow.js +6 -7
- package/src/components/RelationTagCards.js +2 -2
- package/src/components/RelationTagForm.js +0 -2
- package/src/components/RelationTags.js +1 -2
- package/src/components/RelationTagsLoader.js +2 -2
- package/src/components/Relations.js +0 -1
- package/src/components/RelationsGraphLoader.js +0 -1
- package/src/components/StructureLinkRow.js +0 -1
- package/src/components/StructureLinks.js +1 -2
- package/src/components/StructureRelationForm.js +5 -9
- package/src/components/TagTypeDropdownSelector.js +1 -1
- package/src/components/TagTypeSelector.js +0 -2
- package/src/components/__tests__/ConceptImplementationLink.spec.js +0 -1
- package/src/components/__tests__/ConceptLinkTags.spec.js +7 -9
- package/src/components/__tests__/ConceptStructureLinkForm.spec.js +68 -20
- package/src/components/__tests__/ConfirmDeleteRelation.spec.js +0 -1
- package/src/components/__tests__/ImplementationLinkRow.spec.js +0 -1
- package/src/components/__tests__/ImplementationLinks.spec.js +0 -1
- package/src/components/__tests__/ImplementationRelationForm.spec.js +45 -73
- package/src/components/__tests__/LinksPane.spec.js +0 -1
- package/src/components/__tests__/NewRelationTag.spec.js +0 -1
- package/src/components/__tests__/RelationActions.spec.js +14 -15
- package/src/components/__tests__/RelationRoutes.spec.js +59 -7
- package/src/components/__tests__/RelationRow.spec.js +46 -23
- package/src/components/__tests__/RelationTagCards.spec.js +0 -1
- package/src/components/__tests__/RelationTagForm.spec.js +26 -37
- package/src/components/__tests__/RelationTags.spec.js +0 -1
- package/src/components/__tests__/RelationTagsLoader.spec.js +6 -6
- package/src/components/__tests__/Relations.spec.js +19 -17
- package/src/components/__tests__/RelationsGraphLoader.spec.js +32 -26
- package/src/components/__tests__/RelationsLoader.spec.js +19 -19
- package/src/components/__tests__/StructureRelationForm.spec.js +41 -42
- package/src/components/__tests__/TagTypeSelector.spec.js +7 -13
- package/src/components/__tests__/__snapshots__/ConceptImplementationLink.spec.js.snap +1 -0
- package/src/components/__tests__/__snapshots__/ConceptLinkTags.spec.js.snap +12 -20
- package/src/components/__tests__/__snapshots__/ConceptStructureLinkForm.spec.js.snap +170 -19
- package/src/components/__tests__/__snapshots__/ImplementationLinks.spec.js.snap +4 -0
- package/src/components/__tests__/__snapshots__/ImplementationRelationForm.spec.js.snap +13 -13
- package/src/components/__tests__/__snapshots__/NewRelationTag.spec.js.snap +12 -11
- package/src/components/__tests__/__snapshots__/RelationActions.spec.js.snap +1 -1
- package/src/components/__tests__/__snapshots__/RelationRoutes.spec.js.snap +21 -5
- package/src/components/__tests__/__snapshots__/RelationRow.spec.js.snap +7 -1
- package/src/components/__tests__/__snapshots__/RelationTagCards.spec.js.snap +0 -1
- package/src/components/__tests__/__snapshots__/RelationTagForm.spec.js.snap +11 -10
- package/src/components/__tests__/__snapshots__/RelationTags.spec.js.snap +1 -1
- package/src/components/__tests__/__snapshots__/RelationTagsLoader.spec.js.snap +1 -1
- package/src/components/__tests__/__snapshots__/Relations.spec.js.snap +36 -27
- package/src/components/__tests__/__snapshots__/RelationsGraphLoader.spec.js.snap +1 -25
- package/src/components/__tests__/__snapshots__/StructureRelationForm.spec.js.snap +1 -1
- package/src/components/__tests__/__snapshots__/TagTypeSelector.spec.js.snap +11 -14
- package/src/hooks/useTags.js +1 -1
- package/src/sagas/__tests__/fetchRelationsGraph.spec.js +2 -2
- package/src/sagas/fetchRelationsGraph.js +1 -1
- package/src/selectors/getStructureLinks.js +1 -1
- package/src/services/relationGraphTraversal.js +3 -3
|
@@ -1,40 +1,42 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { shallow } from "enzyme";
|
|
1
|
+
import { render, waitForLoad } from "@truedat/test/render";
|
|
3
2
|
import { Relations } from "../Relations";
|
|
4
3
|
|
|
5
4
|
describe("<Relations />", () => {
|
|
6
5
|
const defaultProps = {
|
|
7
6
|
relationsLoading: false,
|
|
8
|
-
relations: []
|
|
7
|
+
relations: [],
|
|
9
8
|
};
|
|
10
|
-
it("matches the latest snapshot", () => {
|
|
11
|
-
const
|
|
12
|
-
|
|
9
|
+
it("matches the latest snapshot", async () => {
|
|
10
|
+
const rendered = render(<Relations {...defaultProps} />);
|
|
11
|
+
await waitForLoad(rendered);
|
|
12
|
+
expect(rendered.container).toMatchSnapshot();
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
it("renders empty relations list message whe relations list is empty", () => {
|
|
16
|
-
const
|
|
17
|
-
|
|
15
|
+
it("renders empty relations list message whe relations list is empty", async () => {
|
|
16
|
+
const rendered = render(<Relations {...defaultProps} />);
|
|
17
|
+
await waitForLoad(rendered);
|
|
18
|
+
expect(rendered.getByText(/relations.empty/i)).toBeInTheDocument();
|
|
18
19
|
});
|
|
19
20
|
|
|
20
|
-
it("renders as many RelationRow as relations in list", () => {
|
|
21
|
-
const
|
|
21
|
+
it("renders as many RelationRow as relations in list", async () => {
|
|
22
|
+
const rendered = render(
|
|
22
23
|
<Relations
|
|
23
24
|
{...{
|
|
24
25
|
...defaultProps,
|
|
25
26
|
relations: [
|
|
26
27
|
{
|
|
27
|
-
id:
|
|
28
|
+
id: 1,
|
|
28
29
|
name: "relation",
|
|
29
30
|
context: {
|
|
30
31
|
source: { name: "source name" },
|
|
31
|
-
target: { name: "target name" }
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
]
|
|
32
|
+
target: { name: "target name" },
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
],
|
|
35
36
|
}}
|
|
36
37
|
/>
|
|
37
38
|
);
|
|
38
|
-
|
|
39
|
+
await waitForLoad(rendered);
|
|
40
|
+
expect(rendered.container.querySelectorAll("tr").length).toBe(1);
|
|
39
41
|
});
|
|
40
42
|
});
|
|
@@ -1,63 +1,69 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { mount, shallow } from "enzyme";
|
|
1
|
+
import { render, waitForLoad } from "@truedat/test/render";
|
|
3
2
|
import { RelationsGraphLoader } from "../RelationsGraphLoader";
|
|
4
3
|
|
|
5
4
|
describe("<RelationsGraphLoader />", () => {
|
|
6
5
|
const resource_id = 1;
|
|
7
6
|
const relationsGraphLoading = false;
|
|
8
7
|
|
|
9
|
-
it("matches the latest snapshot", () => {
|
|
8
|
+
it("matches the latest snapshot", async () => {
|
|
10
9
|
const props = {
|
|
11
10
|
clearRelationsGraph: jest.fn(),
|
|
12
11
|
fetchRelationsGraph: jest.fn(),
|
|
13
12
|
relationsGraphLoading,
|
|
14
|
-
resource_id
|
|
13
|
+
resource_id,
|
|
15
14
|
};
|
|
16
|
-
const
|
|
17
|
-
|
|
15
|
+
const rendered = render(<RelationsGraphLoader {...props} />);
|
|
16
|
+
await waitForLoad(rendered);
|
|
17
|
+
expect(rendered.container).toMatchSnapshot();
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
it("renders a loader if relationsGraphLoading is true", () => {
|
|
20
|
+
it("renders a loader if relationsGraphLoading is true", async () => {
|
|
21
21
|
const props = {
|
|
22
|
+
clearRelationsGraph: jest.fn(),
|
|
23
|
+
fetchRelationsGraph: jest.fn(),
|
|
22
24
|
relationsGraphLoading: true,
|
|
23
|
-
resource_id
|
|
25
|
+
resource_id,
|
|
24
26
|
};
|
|
25
|
-
const
|
|
26
|
-
expect(
|
|
27
|
+
const rendered = render(<RelationsGraphLoader {...props} />);
|
|
28
|
+
expect(rendered.container.querySelector(".loader")).toBeInTheDocument();
|
|
27
29
|
});
|
|
28
30
|
|
|
29
|
-
it("renders null if relationsGraphLoading is false", () => {
|
|
31
|
+
it("renders null if relationsGraphLoading is false", async () => {
|
|
30
32
|
const props = {
|
|
33
|
+
clearRelationsGraph: jest.fn(),
|
|
34
|
+
fetchRelationsGraph: jest.fn(),
|
|
31
35
|
relationsGraphLoading,
|
|
32
|
-
resource_id
|
|
36
|
+
resource_id,
|
|
33
37
|
};
|
|
34
|
-
const
|
|
35
|
-
|
|
38
|
+
const rendered = render(<RelationsGraphLoader {...props} />);
|
|
39
|
+
await waitForLoad(rendered);
|
|
40
|
+
expect(rendered.container.firstChild).toBeNull();
|
|
36
41
|
});
|
|
37
42
|
|
|
38
|
-
it("calls fetchRelationsGraph when component mounts but not when it unmounts", () => {
|
|
43
|
+
it("calls fetchRelationsGraph when component mounts but not when it unmounts", async () => {
|
|
39
44
|
const props = {
|
|
40
45
|
clearRelationsGraph: jest.fn(),
|
|
41
46
|
fetchRelationsGraph: jest.fn(),
|
|
42
47
|
relationsGraphLoading,
|
|
43
|
-
resource_id
|
|
48
|
+
resource_id,
|
|
44
49
|
};
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
const rendered = render(<RelationsGraphLoader {...props} />);
|
|
51
|
+
await waitForLoad(rendered);
|
|
52
|
+
expect(props.fetchRelationsGraph).toHaveBeenCalledTimes(1);
|
|
53
|
+
rendered.unmount();
|
|
54
|
+
expect(props.clearRelationsGraph).toHaveBeenCalledTimes(1);
|
|
49
55
|
});
|
|
50
56
|
|
|
51
|
-
it("calls clearRelationsGraph when component unmounts but not when it mounts", () => {
|
|
57
|
+
it("calls clearRelationsGraph when component unmounts but not when it mounts", async () => {
|
|
52
58
|
const props = {
|
|
53
59
|
clearRelationsGraph: jest.fn(),
|
|
54
60
|
fetchRelationsGraph: jest.fn(),
|
|
55
61
|
relationsGraphLoading: true,
|
|
56
|
-
resource_id
|
|
62
|
+
resource_id,
|
|
57
63
|
};
|
|
58
|
-
const
|
|
59
|
-
expect(props.clearRelationsGraph.
|
|
60
|
-
|
|
61
|
-
expect(props.clearRelationsGraph
|
|
64
|
+
const rendered = render(<RelationsGraphLoader {...props} />);
|
|
65
|
+
expect(props.clearRelationsGraph).not.toHaveBeenCalled();
|
|
66
|
+
rendered.unmount();
|
|
67
|
+
expect(props.clearRelationsGraph).toHaveBeenCalledTimes(1);
|
|
62
68
|
});
|
|
63
69
|
});
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { mount } from "enzyme";
|
|
1
|
+
import { render, waitForLoad } from "@truedat/test/render";
|
|
3
2
|
import { RelationsLoader } from "../RelationsLoader";
|
|
4
3
|
|
|
5
4
|
describe("<RelationsLoader />", () => {
|
|
6
|
-
it("calls fetchRelations on mount and clearRelations on unmount", () => {
|
|
5
|
+
it("calls fetchRelations on mount and clearRelations on unmount", async () => {
|
|
7
6
|
const props = {
|
|
8
7
|
clearRelations: jest.fn(),
|
|
9
8
|
fetchRelations: jest.fn(),
|
|
10
9
|
resource_id: 123,
|
|
11
10
|
resource_type: "foo",
|
|
12
|
-
target_type: "bar"
|
|
11
|
+
target_type: "bar",
|
|
13
12
|
};
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
expect(props.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
expect(props.
|
|
13
|
+
const rendered = render(<RelationsLoader {...props} />);
|
|
14
|
+
await waitForLoad(rendered);
|
|
15
|
+
expect(props.clearRelations).not.toHaveBeenCalled();
|
|
16
|
+
expect(props.fetchRelations).toHaveBeenCalledTimes(1);
|
|
17
|
+
rendered.unmount();
|
|
18
|
+
expect(props.fetchRelations).toHaveBeenCalledTimes(1);
|
|
19
|
+
expect(props.clearRelations).toHaveBeenCalledTimes(1);
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
it("calls fetchRelations when a prop changes", () => {
|
|
22
|
+
it("calls fetchRelations when a prop changes", async () => {
|
|
23
23
|
const props = {
|
|
24
24
|
clearRelations: jest.fn(),
|
|
25
25
|
fetchRelations: jest.fn(),
|
|
26
26
|
resource_id: 123,
|
|
27
27
|
resource_type: "foo",
|
|
28
|
-
target_type: "bar"
|
|
28
|
+
target_type: "bar",
|
|
29
29
|
};
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
target_type
|
|
35
|
-
|
|
36
|
-
expect(props.fetchRelations
|
|
30
|
+
const rendered = render(<RelationsLoader {...props} />);
|
|
31
|
+
await waitForLoad(rendered);
|
|
32
|
+
expect(props.fetchRelations).toHaveBeenCalledTimes(1);
|
|
33
|
+
rendered.rerender(
|
|
34
|
+
<RelationsLoader {...props} target_type="new target_type" />
|
|
35
|
+
);
|
|
36
|
+
expect(props.fetchRelations).toHaveBeenCalledTimes(2);
|
|
37
37
|
});
|
|
38
38
|
});
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { render } from "@truedat/test/render";
|
|
3
|
-
import { linkTo } from "@truedat/core/routes";
|
|
4
1
|
import userEvent from "@testing-library/user-event";
|
|
5
2
|
import { waitFor } from "@testing-library/react";
|
|
3
|
+
import { render, waitForLoad } from "@truedat/test/render";
|
|
4
|
+
import { linkTo } from "@truedat/core/routes";
|
|
6
5
|
import { StructureRelationForm } from "../StructureRelationForm";
|
|
7
6
|
import en from "../../messages/en";
|
|
8
7
|
|
|
8
|
+
jest.mock("@truedat/core/hooks/useUserFilters");
|
|
9
|
+
|
|
9
10
|
const linkConcept = jest.fn();
|
|
10
11
|
|
|
11
12
|
const data = {
|
|
@@ -115,31 +116,26 @@ const messages = {
|
|
|
115
116
|
const renderOpts = {
|
|
116
117
|
messages,
|
|
117
118
|
state: { structure },
|
|
118
|
-
fallback: "lazy",
|
|
119
119
|
};
|
|
120
120
|
|
|
121
121
|
describe("<StructureRelationForm />", () => {
|
|
122
122
|
it("matches the latest snapshot", async () => {
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
renderOpts
|
|
126
|
-
);
|
|
123
|
+
const rendered = render(<StructureRelationForm {...props} />, renderOpts);
|
|
124
|
+
await waitForLoad(rendered);
|
|
127
125
|
|
|
128
|
-
await waitFor(
|
|
129
|
-
()
|
|
130
|
-
expect(getByText(/relates_to/)).toBeInTheDocument();
|
|
131
|
-
},
|
|
132
|
-
{ timeout: 60000 }
|
|
126
|
+
await waitFor(() =>
|
|
127
|
+
expect(rendered.getByText(/relates_to/i)).toBeInTheDocument()
|
|
133
128
|
);
|
|
134
129
|
|
|
135
130
|
await waitFor(() => {
|
|
136
|
-
expect(container.querySelector(".loading")).toBeNull();
|
|
137
|
-
});
|
|
138
|
-
await waitFor(() => {
|
|
139
|
-
expect(getByText(/foo concept/)).toBeInTheDocument();
|
|
131
|
+
expect(rendered.container.querySelector(".loading")).toBeNull();
|
|
140
132
|
});
|
|
141
133
|
|
|
142
|
-
|
|
134
|
+
await waitFor(() =>
|
|
135
|
+
expect(rendered.getByText(/foo concept/i)).toBeInTheDocument()
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
expect(rendered.container).toMatchSnapshot();
|
|
143
139
|
});
|
|
144
140
|
|
|
145
141
|
it("disables submit and shows loading state if concept is linking", async () => {
|
|
@@ -148,44 +144,47 @@ describe("<StructureRelationForm />", () => {
|
|
|
148
144
|
conceptLinking: true,
|
|
149
145
|
};
|
|
150
146
|
|
|
151
|
-
const
|
|
147
|
+
const rendered = render(
|
|
152
148
|
<StructureRelationForm {...newProps} />,
|
|
153
149
|
renderOpts
|
|
154
150
|
);
|
|
155
151
|
|
|
156
|
-
await waitFor(() =>
|
|
157
|
-
expect(getByText(/relates_to/)).toBeInTheDocument()
|
|
158
|
-
|
|
152
|
+
await waitFor(() =>
|
|
153
|
+
expect(rendered.getByText(/relates_to/i)).toBeInTheDocument()
|
|
154
|
+
);
|
|
159
155
|
|
|
160
|
-
expect(queryByRole("button", { name: /
|
|
161
|
-
userEvent.click(await findByText(/relates_to/));
|
|
162
|
-
userEvent.click(await findByText(/bar concept/));
|
|
156
|
+
expect(rendered.queryByRole("button", { name: /create/i })).toBeDisabled();
|
|
163
157
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
158
|
+
const user = userEvent.setup({ delay: null });
|
|
159
|
+
await user.click(await rendered.findByText(/relates_to/i));
|
|
160
|
+
await user.click(await rendered.findByText(/bar concept/i));
|
|
161
|
+
|
|
162
|
+
await waitFor(() =>
|
|
163
|
+
expect(rendered.queryByRole("button", { name: /create/i })).toBeEnabled()
|
|
164
|
+
);
|
|
167
165
|
|
|
168
|
-
|
|
166
|
+
await user.click(await rendered.findByRole("button", { name: /create/i }));
|
|
169
167
|
|
|
170
|
-
await waitFor(() =>
|
|
171
|
-
expect(queryByRole("button", { name: /
|
|
172
|
-
|
|
168
|
+
await waitFor(() =>
|
|
169
|
+
expect(rendered.queryByRole("button", { name: /create/i })).toHaveClass(
|
|
170
|
+
"loading"
|
|
171
|
+
)
|
|
172
|
+
);
|
|
173
173
|
});
|
|
174
174
|
|
|
175
175
|
it("submits the selected relation", async () => {
|
|
176
|
-
const
|
|
177
|
-
|
|
178
|
-
renderOpts
|
|
179
|
-
);
|
|
176
|
+
const rendered = render(<StructureRelationForm {...props} />, renderOpts);
|
|
177
|
+
await waitForLoad(rendered);
|
|
180
178
|
|
|
181
|
-
await waitFor(() =>
|
|
182
|
-
expect(getByText(/relates_to/)).toBeInTheDocument()
|
|
183
|
-
|
|
179
|
+
await waitFor(() =>
|
|
180
|
+
expect(rendered.getByText(/relates_to/i)).toBeInTheDocument()
|
|
181
|
+
);
|
|
184
182
|
|
|
185
|
-
userEvent.
|
|
186
|
-
|
|
183
|
+
const user = userEvent.setup({ delay: null });
|
|
184
|
+
await user.click(await rendered.findByText(/relates_to/i));
|
|
185
|
+
await user.click(await rendered.findByText(/bar concept/i));
|
|
187
186
|
|
|
188
|
-
|
|
187
|
+
await user.click(await rendered.findByRole("button", { name: /create/i }));
|
|
189
188
|
|
|
190
189
|
const expectedRelation = {
|
|
191
190
|
redirectUrl: linkTo.STRUCTURE_LINKS({ id: 3 }),
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { shallow } from "enzyme";
|
|
3
|
-
import { intl } from "@truedat/test/intl-stub";
|
|
1
|
+
import { render, waitForLoad } from "@truedat/test/render";
|
|
4
2
|
import { TagTypeSelector } from "../TagTypeSelector";
|
|
5
3
|
|
|
6
|
-
// workaround for enzyme issue with React.useContext
|
|
7
|
-
// see https://github.com/airbnb/enzyme/issues/2176#issuecomment-532361526
|
|
8
|
-
jest.spyOn(React, "useContext").mockImplementation(() => intl);
|
|
9
|
-
|
|
10
4
|
describe("<TagTypeSelector />", () => {
|
|
11
|
-
it("matches
|
|
12
|
-
const
|
|
13
|
-
const defaultProps = {
|
|
5
|
+
it("matches the latest snapshot", async () => {
|
|
6
|
+
const props = {
|
|
14
7
|
options: [],
|
|
15
|
-
onChange
|
|
8
|
+
onChange: jest.fn(),
|
|
16
9
|
};
|
|
17
|
-
const
|
|
18
|
-
|
|
10
|
+
const rendered = render(<TagTypeSelector {...props} />);
|
|
11
|
+
await waitForLoad(rendered);
|
|
12
|
+
expect(rendered.container).toMatchSnapshot();
|
|
19
13
|
});
|
|
20
14
|
});
|
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<li
|
|
8
|
-
key="0"
|
|
3
|
+
exports[`<ConceptLinkTags /> matches the latest snapshot 1`] = `
|
|
4
|
+
<div>
|
|
5
|
+
<ul
|
|
6
|
+
class="concept-link-tags"
|
|
9
7
|
>
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<MemoizedFormattedMessage
|
|
19
|
-
defaultMessage="business_concept_to_field_master"
|
|
20
|
-
id="conceptRelations.relationType.business_concept_to_field_master"
|
|
21
|
-
/>
|
|
22
|
-
</li>
|
|
23
|
-
</ul>
|
|
8
|
+
<li>
|
|
9
|
+
otro tipo
|
|
10
|
+
</li>
|
|
11
|
+
<li>
|
|
12
|
+
business_concept_to_field_master
|
|
13
|
+
</li>
|
|
14
|
+
</ul>
|
|
15
|
+
</div>
|
|
24
16
|
`;
|
|
@@ -1,25 +1,176 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`<ConceptStructureLinkForm /> matches the latest snapshot 1`] = `
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
hidden
|
|
4
|
+
<div>
|
|
5
|
+
<div
|
|
6
|
+
class="ui hidden divider"
|
|
7
7
|
/>
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
<div
|
|
9
|
+
class="ui segment"
|
|
10
|
+
>
|
|
11
|
+
<div
|
|
12
|
+
class="ui action left icon input"
|
|
13
|
+
>
|
|
14
|
+
<i
|
|
15
|
+
aria-hidden="true"
|
|
16
|
+
class="search link icon"
|
|
17
|
+
/>
|
|
18
|
+
<input
|
|
19
|
+
placeholder="search.placeholder"
|
|
20
|
+
type="text"
|
|
21
|
+
value=""
|
|
22
|
+
/>
|
|
23
|
+
<button
|
|
24
|
+
class="ui icon button"
|
|
25
|
+
>
|
|
26
|
+
<i
|
|
27
|
+
aria-hidden="true"
|
|
28
|
+
class="calendar alternate outline icon"
|
|
29
|
+
/>
|
|
30
|
+
</button>
|
|
31
|
+
<div
|
|
32
|
+
aria-busy="false"
|
|
33
|
+
aria-disabled="false"
|
|
34
|
+
aria-expanded="false"
|
|
35
|
+
class="ui button floating labeled scrolling dropdown icon"
|
|
36
|
+
role="listbox"
|
|
37
|
+
tabindex="0"
|
|
38
|
+
>
|
|
39
|
+
<div
|
|
40
|
+
aria-atomic="true"
|
|
41
|
+
aria-live="polite"
|
|
42
|
+
class="divider text"
|
|
43
|
+
role="alert"
|
|
44
|
+
>
|
|
45
|
+
Filters
|
|
46
|
+
</div>
|
|
47
|
+
<i
|
|
48
|
+
aria-hidden="true"
|
|
49
|
+
class="filter icon"
|
|
50
|
+
/>
|
|
51
|
+
<div
|
|
52
|
+
class="menu transition"
|
|
53
|
+
>
|
|
54
|
+
<div
|
|
55
|
+
class="item"
|
|
56
|
+
role="option"
|
|
57
|
+
>
|
|
58
|
+
<em>
|
|
59
|
+
(reset filters)
|
|
60
|
+
</em>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
<div
|
|
66
|
+
class="selectedFilters"
|
|
22
67
|
/>
|
|
23
|
-
|
|
24
|
-
|
|
68
|
+
<div
|
|
69
|
+
class="dimmable structure-table-overflow"
|
|
70
|
+
>
|
|
71
|
+
<div
|
|
72
|
+
class="ui label structures-label-results"
|
|
73
|
+
>
|
|
74
|
+
structures.retrieved.results
|
|
75
|
+
</div>
|
|
76
|
+
<table
|
|
77
|
+
class="ui small selectable sortable table"
|
|
78
|
+
>
|
|
79
|
+
<thead
|
|
80
|
+
class=""
|
|
81
|
+
>
|
|
82
|
+
<tr
|
|
83
|
+
class=""
|
|
84
|
+
>
|
|
85
|
+
<th
|
|
86
|
+
class="two wide"
|
|
87
|
+
>
|
|
88
|
+
structure.name
|
|
89
|
+
</th>
|
|
90
|
+
<th
|
|
91
|
+
class="one wide disabled"
|
|
92
|
+
>
|
|
93
|
+
structure.type
|
|
94
|
+
</th>
|
|
95
|
+
<th
|
|
96
|
+
class="one wide"
|
|
97
|
+
>
|
|
98
|
+
structure.system
|
|
99
|
+
</th>
|
|
100
|
+
<th
|
|
101
|
+
class="one wide disabled"
|
|
102
|
+
>
|
|
103
|
+
structure.relation.relation_type_name
|
|
104
|
+
</th>
|
|
105
|
+
<th
|
|
106
|
+
class="one wide disabled"
|
|
107
|
+
>
|
|
108
|
+
structure.group
|
|
109
|
+
</th>
|
|
110
|
+
<th
|
|
111
|
+
class="one wide"
|
|
112
|
+
>
|
|
113
|
+
structure.last_change_at
|
|
114
|
+
</th>
|
|
115
|
+
</tr>
|
|
116
|
+
</thead>
|
|
117
|
+
<tbody
|
|
118
|
+
class=""
|
|
119
|
+
>
|
|
120
|
+
<tr
|
|
121
|
+
class=""
|
|
122
|
+
>
|
|
123
|
+
<td
|
|
124
|
+
class="structure-cell-overflow"
|
|
125
|
+
>
|
|
126
|
+
structure
|
|
127
|
+
</td>
|
|
128
|
+
<td
|
|
129
|
+
class=""
|
|
130
|
+
>
|
|
131
|
+
structure.type.undefined.text
|
|
132
|
+
</td>
|
|
133
|
+
<td
|
|
134
|
+
class=""
|
|
135
|
+
/>
|
|
136
|
+
<td
|
|
137
|
+
class=""
|
|
138
|
+
/>
|
|
139
|
+
<td
|
|
140
|
+
class=""
|
|
141
|
+
/>
|
|
142
|
+
<td
|
|
143
|
+
class=""
|
|
144
|
+
>
|
|
145
|
+
<time
|
|
146
|
+
datetime="1735689600350"
|
|
147
|
+
>
|
|
148
|
+
2025-01-01 00:00
|
|
149
|
+
</time>
|
|
150
|
+
</td>
|
|
151
|
+
</tr>
|
|
152
|
+
</tbody>
|
|
153
|
+
</table>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
<div
|
|
157
|
+
class="ui buttons"
|
|
158
|
+
>
|
|
159
|
+
<button
|
|
160
|
+
class="ui primary disabled button"
|
|
161
|
+
disabled=""
|
|
162
|
+
tabindex="-1"
|
|
163
|
+
>
|
|
164
|
+
actions.create
|
|
165
|
+
</button>
|
|
166
|
+
<a
|
|
167
|
+
class="ui secondary button"
|
|
168
|
+
data-discover="true"
|
|
169
|
+
href="/"
|
|
170
|
+
role="button"
|
|
171
|
+
>
|
|
172
|
+
actions.cancel
|
|
173
|
+
</a>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
25
176
|
`;
|
|
@@ -13,6 +13,7 @@ exports[`<ImplementationLinks /> matches the latest snapshot 1`] = `
|
|
|
13
13
|
>
|
|
14
14
|
<a
|
|
15
15
|
class="ui primary right floated button"
|
|
16
|
+
data-discover="true"
|
|
16
17
|
href="/implementations/4/links/concepts/new"
|
|
17
18
|
role="button"
|
|
18
19
|
>
|
|
@@ -61,6 +62,7 @@ exports[`<ImplementationLinks /> matches the latest snapshot 1`] = `
|
|
|
61
62
|
class=""
|
|
62
63
|
>
|
|
63
64
|
<a
|
|
65
|
+
data-discover="true"
|
|
64
66
|
href="/concepts/2/versions/current/links/implementations"
|
|
65
67
|
>
|
|
66
68
|
name
|
|
@@ -116,6 +118,7 @@ exports[`<ImplementationLinks /> matches the latest snapshot when implementation
|
|
|
116
118
|
>
|
|
117
119
|
<a
|
|
118
120
|
class="ui primary right floated button"
|
|
121
|
+
data-discover="true"
|
|
119
122
|
href="/implementations/4/links/concepts/new"
|
|
120
123
|
role="button"
|
|
121
124
|
>
|
|
@@ -159,6 +162,7 @@ exports[`<ImplementationLinks /> matches the latest snapshot when implementation
|
|
|
159
162
|
class=""
|
|
160
163
|
>
|
|
161
164
|
<a
|
|
165
|
+
data-discover="true"
|
|
162
166
|
href="/concepts/2/versions/current/links/implementations"
|
|
163
167
|
>
|
|
164
168
|
name
|