@truedat/dd 4.51.1 → 4.51.3

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +6 -6
  3. package/src/api/queries.js +24 -0
  4. package/src/api.js +0 -2
  5. package/src/components/DictionaryRoutes.js +0 -5
  6. package/src/components/EditDomainForm.js +15 -20
  7. package/src/components/LineageForm.js +23 -34
  8. package/src/components/PendingStructureNoteRow.js +5 -8
  9. package/src/components/PendingStructureNotes.js +25 -46
  10. package/src/components/PendingStructureNotesTable.js +46 -57
  11. package/src/components/StructuresRoutes.js +1 -11
  12. package/src/components/__tests__/EditDomainForm.spec.js +31 -46
  13. package/src/components/__tests__/LineageForm.spec.js +37 -122
  14. package/src/components/__tests__/PendingStructureNoteRow.spec.js +2 -2
  15. package/src/components/__tests__/PendingStructureNotes.spec.js +13 -15
  16. package/src/components/__tests__/__snapshots__/EditDomainForm.spec.js.snap +2 -71
  17. package/src/components/__tests__/__snapshots__/LineageForm.spec.js.snap +13 -14
  18. package/src/components/__tests__/__snapshots__/PendingStructureNotes.spec.js.snap +1 -2
  19. package/src/components/__tests__/__snapshots__/PendingStructureNotesTable.spec.js.snap +8 -16
  20. package/src/messages/en.js +1 -0
  21. package/src/messages/es.js +1 -0
  22. package/src/reducers/index.js +0 -2
  23. package/src/routines.js +0 -1
  24. package/src/sagas/index.js +0 -3
  25. package/src/selectors/index.js +0 -1
  26. package/src/reducers/__tests__/unitDomains.spec.js +0 -27
  27. package/src/reducers/unitDomains.js +0 -16
  28. package/src/sagas/__tests__/fetchUnitDomains.spec.js +0 -91
  29. package/src/sagas/fetchUnitDomains.js +0 -29
  30. package/src/selectors/__tests__/getDomainOptions.spec.js +0 -32
  31. package/src/selectors/getDomainOptions.js +0 -17
@@ -2,14 +2,17 @@ import React from "react";
2
2
  import { waitFor } from "@testing-library/react";
3
3
  import userEvent from "@testing-library/user-event";
4
4
  import { render } from "@truedat/test/render";
5
+ import { domainsMock } from "@truedat/test/mocks";
5
6
  import { EditDomainForm } from "../EditDomainForm";
6
7
 
8
+ const mocks = [domainsMock({ action: "manageStructuresDomain" })];
9
+
7
10
  describe("<EditDomainForm />", () => {
8
11
  const updateStructure = jest.fn();
9
12
 
10
13
  const domains = [
11
- { id: 1, name: "Domain 1", level: 0 },
12
- { id: 2, name: "Domain 2", level: 0 },
14
+ { id: 1, name: "fooDomain", level: 0 },
15
+ { id: 2, name: "barDomain", level: 0 },
13
16
  ];
14
17
 
15
18
  const structure = {
@@ -20,61 +23,46 @@ describe("<EditDomainForm />", () => {
20
23
  title: "title",
21
24
  updateStructure,
22
25
  structure,
23
- domainOptions: domains,
24
26
  };
25
27
 
26
- const messages = {
27
- en: {
28
- "structure.edit_domain.title": "Edit domain",
29
- "structureDomain.actions.update": "Update",
30
- "structureDomain.actions.update.inherit": "Apply on children",
31
- "domain.selector.label": "Domain",
32
- "domain.selector.placeholder": "Select a domain...",
33
- "domain.multiple.placeholder": "Select domains ...",
34
- },
35
- };
28
+ const renderOpts = { mocks, state: { domains } };
36
29
 
37
30
  beforeEach(() => {
38
31
  jest.clearAllMocks();
39
32
  });
40
33
 
41
34
  it("matches the latest snapshot", () => {
42
- const { container } = render(<EditDomainForm {...props} />, {
43
- state: { domains },
44
- messages,
45
- });
35
+ const { container } = render(<EditDomainForm {...props} />, renderOpts);
46
36
  expect(container).toMatchSnapshot();
47
37
  });
48
38
 
49
39
  it("enables send button when selecting domain", async () => {
50
- const { getByRole } = render(<EditDomainForm {...props} />, {
51
- state: { domains },
52
- messages,
53
- });
40
+ const { getByRole, findByText } = render(
41
+ <EditDomainForm {...props} />,
42
+ renderOpts
43
+ );
54
44
 
55
45
  const button = getByRole("button", { name: /update/i });
56
- const option = getByRole("option", { name: /Domain 1/i });
57
46
 
58
47
  expect(button).toBeDisabled();
59
- userEvent.click(option);
48
+ userEvent.click(await findByText("fooDomain"));
60
49
  await waitFor(() => {
61
50
  expect(button).not.toBeDisabled();
62
51
  });
63
52
  });
64
53
 
65
54
  it("invokes function when send button clicked", async () => {
66
- const { getByRole } = render(<EditDomainForm {...props} />, {
67
- state: { domains },
68
- messages,
69
- });
55
+ const { getByRole, findByText } = render(
56
+ <EditDomainForm {...props} />,
57
+ renderOpts
58
+ );
70
59
 
71
60
  const button = getByRole("button", { name: /update/i });
72
61
  const checkbox = getByRole("checkbox");
73
- const option = getByRole("option", { name: /Domain 1/i });
74
62
 
75
63
  expect(button).toBeDisabled();
76
64
  expect(checkbox).toBeChecked();
77
- userEvent.click(option);
65
+ userEvent.click(await findByText("fooDomain"));
78
66
  await waitFor(() => {
79
67
  expect(button).not.toBeDisabled();
80
68
  });
@@ -84,7 +72,7 @@ describe("<EditDomainForm />", () => {
84
72
  });
85
73
  expect(updateStructure).toHaveBeenCalledWith(
86
74
  expect.objectContaining({
87
- data_structure: { domain_ids: [1], id: 42 },
75
+ data_structure: { domain_ids: ["1"], id: 42 },
88
76
  inherit: true,
89
77
  redirect: "/structures/42/notes",
90
78
  })
@@ -92,18 +80,17 @@ describe("<EditDomainForm />", () => {
92
80
  });
93
81
 
94
82
  it("invokes function when send button clicked with modified inheritance", async () => {
95
- const { getByRole } = render(<EditDomainForm {...props} />, {
96
- state: { domains },
97
- messages,
98
- });
83
+ const { getByRole, findByText } = render(
84
+ <EditDomainForm {...props} />,
85
+ renderOpts
86
+ );
99
87
 
100
88
  const button = getByRole("button", { name: /update/i });
101
89
  const checkbox = getByRole("checkbox");
102
- const option = getByRole("option", { name: /Domain 1/i });
103
90
 
104
91
  expect(button).toBeDisabled();
105
92
  expect(checkbox).toBeChecked();
106
- userEvent.click(option);
93
+ userEvent.click(await findByText("fooDomain"));
107
94
  userEvent.click(checkbox);
108
95
  await waitFor(() => {
109
96
  expect(button).not.toBeDisabled();
@@ -114,7 +101,7 @@ describe("<EditDomainForm />", () => {
114
101
  });
115
102
  expect(updateStructure).toHaveBeenCalledWith(
116
103
  expect.objectContaining({
117
- data_structure: { domain_ids: [1], id: 42 },
104
+ data_structure: { domain_ids: ["1"], id: 42 },
118
105
  inherit: false,
119
106
  redirect: "/structures/42/notes",
120
107
  })
@@ -122,20 +109,18 @@ describe("<EditDomainForm />", () => {
122
109
  });
123
110
 
124
111
  it("send selected multiple domain ids when button clicked", async () => {
125
- const { getByRole } = render(<EditDomainForm {...props} />, {
126
- state: { domains },
127
- messages,
128
- });
112
+ const { getByRole, findByText } = render(
113
+ <EditDomainForm {...props} />,
114
+ renderOpts
115
+ );
129
116
 
130
117
  const button = getByRole("button", { name: /update/i });
131
118
  const checkbox = getByRole("checkbox");
132
- const optionOne = getByRole("option", { name: /Domain 1/i });
133
- const optionTwo = getByRole("option", { name: /Domain 2/i });
134
119
 
135
120
  expect(button).toBeDisabled();
136
121
  expect(checkbox).toBeChecked();
137
- userEvent.click(optionTwo);
138
- userEvent.click(optionOne);
122
+ userEvent.click(await findByText("barDomain"));
123
+ userEvent.click(await findByText("fooDomain"));
139
124
  await waitFor(() => {
140
125
  expect(button).not.toBeDisabled();
141
126
  });
@@ -145,7 +130,7 @@ describe("<EditDomainForm />", () => {
145
130
  });
146
131
  expect(updateStructure).toHaveBeenCalledWith(
147
132
  expect.objectContaining({
148
- data_structure: { domain_ids: [2, 1], id: 42 },
133
+ data_structure: { domain_ids: ["2", "1"], id: 42 },
149
134
  inherit: true,
150
135
  redirect: "/structures/42/notes",
151
136
  })
@@ -1,25 +1,22 @@
1
- import React, { Suspense } from "react";
1
+ import React from "react";
2
2
  import { waitFor } from "@testing-library/react";
3
3
  import userEvent from "@testing-library/user-event";
4
- import { intl } from "@truedat/test/intl-stub";
5
4
  import { render } from "@truedat/test/render";
6
- import { createStore } from "redux";
7
- import { Provider } from "react-redux";
5
+ import { domainsMock } from "@truedat/test/mocks";
8
6
  import { LineageForm } from "../LineageForm";
9
7
 
10
- // workaround for enzyme issue with React.useContext
11
- // see https://github.com/airbnb/enzyme/issues/2176#issuecomment-532361526
12
- jest.spyOn(React, "useContext").mockImplementation(() => intl);
8
+ const mocks = [domainsMock({ action: "viewLineage" })];
9
+ const renderOpts = { mocks };
13
10
 
14
11
  describe("<LineageForm />", () => {
15
12
  const fetchNodes = jest.fn();
16
13
  const groupOptions = [
17
14
  [
18
- { key: "foo", text: "foo", value: "foo" },
19
- { key: "bar", text: "bar", value: "bar" },
15
+ { key: "grp1", text: "grp1", value: "grp1" },
16
+ { key: "grp2", text: "grp2", value: "grp2" },
20
17
  ],
21
18
  ];
22
- const resourceOptions = [{ key: "xyz", text: "xyz", value: "xyz" }];
19
+ const resourceOptions = [{ key: "res1", text: "res1", value: "res1" }];
23
20
  const props = {
24
21
  createGraph: jest.fn(),
25
22
  clearNodes: jest.fn(),
@@ -36,100 +33,62 @@ describe("<LineageForm />", () => {
36
33
  };
37
34
 
38
35
  it("matches the latest snapshot", () => {
39
- const messages = {};
40
- const store = createStore(() => ({ unitDomains: [] }));
41
- const { container } = render(
42
- <Provider store={store}>
43
- <Suspense fallback={null}>
44
- <LineageForm {...props} />
45
- </Suspense>
46
- </Provider>,
47
- {
48
- messages,
49
- }
50
- );
36
+ const { container } = render(<LineageForm {...props} />, renderOpts);
51
37
  expect(container).toMatchSnapshot();
52
38
  });
53
39
 
54
40
  it("selecting group will call selectGroup function", async () => {
55
41
  const selectGroup = jest.fn();
56
- const messages = {};
57
- const store = createStore(() => ({ unitDomains: [] }));
58
42
  const { getByRole } = render(
59
- <Provider store={store}>
60
- <Suspense fallback={null}>
61
- <LineageForm {...props} selectGroup={selectGroup} />
62
- </Suspense>
63
- </Provider>,
64
- {
65
- messages,
66
- }
43
+ <LineageForm {...props} selectGroup={selectGroup} />,
44
+ renderOpts
67
45
  );
68
46
  await waitFor(() => {
69
- expect(getByRole("option", { name: /foo/i })).toBeTruthy();
47
+ expect(getByRole("option", { name: /grp1/i })).toBeInTheDocument();
70
48
  });
71
49
 
72
- userEvent.click(getByRole("option", { name: /foo/i }));
50
+ userEvent.click(getByRole("option", { name: /grp1/i }));
73
51
 
74
52
  expect(selectGroup.mock.calls.length).toBe(1);
75
- expect(selectGroup.mock.calls[0]).toEqual([{ id: "foo" }]);
53
+ expect(selectGroup.mock.calls[0]).toEqual([{ id: "grp1" }]);
76
54
  });
77
55
 
78
56
  it("selecting resources will call selectResources function", async () => {
79
57
  const selectResources = jest.fn();
80
- const messages = {};
81
- const store = createStore(() => ({ unitDomains: [] }));
82
58
  const { getByRole } = render(
83
- <Provider store={store}>
84
- <Suspense fallback={null}>
85
- <LineageForm {...props} selectResources={selectResources} />
86
- </Suspense>
87
- </Provider>,
88
- {
89
- messages,
90
- }
59
+ <LineageForm {...props} selectResources={selectResources} />,
60
+ renderOpts
91
61
  );
92
62
  await waitFor(() => {
93
- expect(getByRole("option", { name: /foo/i })).toBeTruthy();
63
+ expect(getByRole("option", { name: /grp1/i })).toBeInTheDocument();
94
64
  });
95
65
 
96
- userEvent.click(getByRole("option", { name: /foo/i }));
66
+ userEvent.click(getByRole("option", { name: /grp1/i }));
97
67
 
98
68
  await waitFor(() => {
99
- expect(getByRole("option", { name: /xyz/i })).toBeTruthy();
69
+ expect(getByRole("option", { name: /res1/i })).toBeInTheDocument();
100
70
  });
101
71
 
102
- userEvent.click(getByRole("option", { name: /xyz/i }));
72
+ userEvent.click(getByRole("option", { name: /res1/i }));
103
73
 
104
74
  expect(selectResources.mock.calls.length).toBe(1);
105
- expect(selectResources.mock.calls[0]).toEqual([["xyz"]]);
75
+ expect(selectResources.mock.calls[0]).toEqual([["res1"]]);
106
76
  });
107
77
 
108
78
  it("handle submit action", async () => {
109
79
  const selectedResources = ["id1", "id2"];
110
80
  const createGraph = jest.fn();
111
- const messages = {};
112
- const store = createStore(() => ({ unitDomains: [] }));
113
- const { getByRole } = render(
114
- <Provider store={store}>
115
- <Suspense fallback={null}>
116
- <LineageForm
117
- {...props}
118
- createGraph={createGraph}
119
- selectedResources={selectedResources}
120
- />
121
- </Suspense>
122
- </Provider>,
123
- {
124
- messages,
125
- }
81
+ const { findByText, findByRole } = render(
82
+ <LineageForm
83
+ {...props}
84
+ createGraph={createGraph}
85
+ selectedResources={selectedResources}
86
+ />,
87
+ renderOpts
126
88
  );
127
89
 
128
- await waitFor(() => {
129
- userEvent.click(
130
- getByRole("button", { name: "navigation.lineage.lineage" })
131
- );
132
- });
90
+ userEvent.click(await findByText("fooDomain"));
91
+ userEvent.click(await findByRole("button", { name: "Lineage" }));
133
92
 
134
93
  expect(createGraph.mock.calls.length).toBe(1);
135
94
  expect(createGraph.mock.calls[0]).toEqual([
@@ -138,65 +97,21 @@ describe("<LineageForm />", () => {
138
97
  });
139
98
 
140
99
  it("calls clearNodes when component unmounts but not when it mounts", async () => {
141
- const f = jest.fn();
142
- const messages = {};
143
- const store = createStore(() => ({ unitDomains: [] }));
100
+ const clearNodes = jest.fn();
144
101
  const { unmount } = render(
145
- <Provider store={store}>
146
- <Suspense fallback={null}>
147
- <LineageForm {...props} resourceOptions={[]} clearNodes={f} />
148
- </Suspense>
149
- </Provider>,
150
- {
151
- messages,
152
- }
102
+ <LineageForm {...props} resourceOptions={[]} clearNodes={clearNodes} />,
103
+ renderOpts
153
104
  );
154
- expect(f).toHaveBeenCalledTimes(0);
105
+ expect(clearNodes).toHaveBeenCalledTimes(0);
155
106
  unmount();
156
- expect(f).toHaveBeenCalledTimes(1);
107
+ expect(clearNodes).toHaveBeenCalledTimes(1);
157
108
  });
158
109
 
159
110
  it("handles domain selection", async () => {
160
- const messages = {};
161
- const domainOptions = [
162
- {
163
- id: 1,
164
- name: "Domain 1",
165
- level: 0,
166
- ancestors: [],
167
- children: [{ id: 2, name: "Domain 2", level: 1 }],
168
- descendents: [{ id: 2, name: "Domain 2", level: 1 }],
169
- },
170
- {
171
- id: 2,
172
- name: "Domain 2",
173
- level: 1,
174
- children: [],
175
- ancestors: [
176
- {
177
- id: 1,
178
- name: "Domain 1",
179
- },
180
- ],
181
- },
182
- { id: 3, name: "Domain 3", level: 0, children: [], ancestors: [] },
183
- ];
184
- const store = createStore(() => ({
185
- domains: [],
186
- }));
187
- const { getByRole } = render(
188
- <Provider store={store}>
189
- <Suspense fallback={null}>
190
- <LineageForm {...props} domainOptions={domainOptions} />
191
- </Suspense>
192
- </Provider>,
193
- {
194
- messages,
195
- }
196
- );
111
+ const { getByRole } = render(<LineageForm {...props} />, renderOpts);
197
112
  await waitFor(() => {
198
- userEvent.click(getByRole("option", { name: /Domain 1/i }));
113
+ userEvent.click(getByRole("option", { name: /fooDomain/i }));
199
114
  });
200
- expect(fetchNodes).toHaveBeenCalledWith({ domain_id: 1 });
115
+ expect(fetchNodes).toHaveBeenCalledWith({ domain_id: "1" });
201
116
  });
202
117
  });
@@ -7,8 +7,8 @@ const props = {
7
7
  structureNote: {
8
8
  id: "7207",
9
9
  status: "draft",
10
- data_structure: {
11
- current_version: {
10
+ dataStructure: {
11
+ currentVersion: {
12
12
  name: "bar",
13
13
  path: ["bar rute"],
14
14
  },
@@ -1,13 +1,13 @@
1
1
  import React, { Suspense } from "react";
2
2
  import { waitFor } from "@testing-library/react";
3
3
  import { render } from "@truedat/test/render";
4
- import PendingStructureNotes, {
5
- STRUCTURE_NOTES,
6
- } from "../PendingStructureNotes";
4
+ import { domainsMock } from "@truedat/test/mocks";
5
+ import { STRUCTURE_NOTES_QUERY } from "../../api/queries";
6
+ import PendingStructureNotes from "../PendingStructureNotes";
7
7
 
8
8
  const domains = [
9
- { id: 1, name: "Domain 1", level: 0 },
10
- { id: 2, name: "Domain 2", level: 0 },
9
+ { id: "1", name: "Domain 1", level: 0 },
10
+ { id: "2", name: "Domain 2", level: 0 },
11
11
  ];
12
12
  const systems = [
13
13
  { external_id: "some_external_id", id: 10, name: "some system" },
@@ -19,8 +19,8 @@ const structureNotes = {
19
19
  {
20
20
  id: "7207",
21
21
  status: "draft",
22
- data_structure: {
23
- current_version: {
22
+ dataStructure: {
23
+ currentVersion: {
24
24
  name: "bar",
25
25
  path: ["bar rute"],
26
26
  },
@@ -31,8 +31,8 @@ const structureNotes = {
31
31
  {
32
32
  id: "665214",
33
33
  status: "rejected",
34
- data_structure: {
35
- current_version: {
34
+ dataStructure: {
35
+ currentVersion: {
36
36
  name: "foo",
37
37
  path: ["foo rute", "other route"],
38
38
  },
@@ -44,21 +44,19 @@ const structureNotes = {
44
44
  };
45
45
 
46
46
  const structureNotesMock = {
47
- request: { query: STRUCTURE_NOTES },
47
+ request: { query: STRUCTURE_NOTES_QUERY },
48
48
  result: { data: { structureNotes } },
49
49
  };
50
50
 
51
51
  const renderOpts = {
52
- mocks: [structureNotesMock],
52
+ mocks: [structureNotesMock, domainsMock({ action: "publishStructureNote" })],
53
53
  state: { domains, systems },
54
54
  };
55
55
 
56
56
  describe("<PendingStructureNotes />", () => {
57
57
  it("matches the latest snapshot", async () => {
58
58
  const { container, queryByText } = render(
59
- <Suspense fallback={null}>
60
- <PendingStructureNotes />
61
- </Suspense>,
59
+ <PendingStructureNotes />,
62
60
  renderOpts
63
61
  );
64
62
  expect(container).toMatchSnapshot();
@@ -68,7 +66,7 @@ describe("<PendingStructureNotes />", () => {
68
66
  });
69
67
 
70
68
  await waitFor(() => {
71
- expect(queryByText(/Domain 1/)).toBeTruthy();
69
+ expect(queryByText(/fooDomain/)).toBeTruthy();
72
70
  });
73
71
  });
74
72
  });
@@ -15,77 +15,8 @@ exports[`<EditDomainForm /> matches the latest snapshot 1`] = `
15
15
  class="ui form"
16
16
  >
17
17
  <div
18
- class="ui segment"
19
- >
20
- <div
21
- class="field"
22
- >
23
- <div
24
- aria-expanded="false"
25
- aria-multiselectable="true"
26
- class="ui floating multiple dropdown"
27
- role="listbox"
28
- tabindex="0"
29
- >
30
- <label>
31
- Select domains ...
32
- </label>
33
- <i
34
- aria-hidden="true"
35
- class="dropdown icon"
36
- />
37
- <div
38
- class="menu transition"
39
- >
40
- <div
41
- class="ui left icon input search"
42
- >
43
- <input
44
- type="text"
45
- />
46
- <i
47
- aria-hidden="true"
48
- class="search icon"
49
- />
50
- </div>
51
- <div
52
- class="scrolling menu transition"
53
- >
54
- <div
55
- aria-selected="false"
56
- class="item"
57
- role="option"
58
- >
59
- <div
60
- style="margin-left: 0px;"
61
- >
62
- <i
63
- aria-hidden="true"
64
- class="icon"
65
- />
66
- Domain 1
67
- </div>
68
- </div>
69
- <div
70
- aria-selected="false"
71
- class="item"
72
- role="option"
73
- >
74
- <div
75
- style="margin-left: 0px;"
76
- >
77
- <i
78
- aria-hidden="true"
79
- class="icon"
80
- />
81
- Domain 2
82
- </div>
83
- </div>
84
- </div>
85
- </div>
86
- </div>
87
- </div>
88
- </div>
18
+ class="ui loading segment"
19
+ />
89
20
  <div
90
21
  class="ui checked checkbox"
91
22
  >
@@ -4,7 +4,6 @@ exports[`<LineageForm /> matches the latest snapshot 1`] = `
4
4
  <div>
5
5
  <div
6
6
  class="ui segment"
7
- style="display: none;"
8
7
  >
9
8
  <div
10
9
  class="accordion ui"
@@ -19,7 +18,7 @@ exports[`<LineageForm /> matches the latest snapshot 1`] = `
19
18
  aria-hidden="true"
20
19
  class="dropdown icon"
21
20
  />
22
- lineage.form.header
21
+ Select Structures
23
22
  </h4>
24
23
  </div>
25
24
  <div
@@ -51,7 +50,7 @@ exports[`<LineageForm /> matches the latest snapshot 1`] = `
51
50
  class="divider default text"
52
51
  role="alert"
53
52
  >
54
- lineage.group.placeholder
53
+ Select Top Level Structure
55
54
  </div>
56
55
  <i
57
56
  aria-hidden="true"
@@ -71,7 +70,7 @@ exports[`<LineageForm /> matches the latest snapshot 1`] = `
71
70
  <span
72
71
  class="text"
73
72
  >
74
- foo
73
+ grp1
75
74
  </span>
76
75
  </div>
77
76
  <div
@@ -84,7 +83,7 @@ exports[`<LineageForm /> matches the latest snapshot 1`] = `
84
83
  <span
85
84
  class="text"
86
85
  >
87
- bar
86
+ grp2
88
87
  </span>
89
88
  </div>
90
89
  </div>
@@ -115,7 +114,7 @@ exports[`<LineageForm /> matches the latest snapshot 1`] = `
115
114
  class="divider default text"
116
115
  role="alert"
117
116
  >
118
- lineage.resources.placeholder
117
+ Select Child Structures
119
118
  </div>
120
119
  <i
121
120
  aria-hidden="true"
@@ -136,7 +135,7 @@ exports[`<LineageForm /> matches the latest snapshot 1`] = `
136
135
  <span
137
136
  class="text"
138
137
  >
139
- xyz
138
+ res1
140
139
  </span>
141
140
  </div>
142
141
  </div>
@@ -145,7 +144,7 @@ exports[`<LineageForm /> matches the latest snapshot 1`] = `
145
144
  <h5
146
145
  class="ui header"
147
146
  >
148
- lineage.form.levels.header
147
+ Levels
149
148
  </h5>
150
149
  <div
151
150
  class="fields"
@@ -169,7 +168,7 @@ exports[`<LineageForm /> matches the latest snapshot 1`] = `
169
168
  value="all"
170
169
  />
171
170
  <label>
172
- lineage.form.levels.all.label
171
+ All
173
172
  </label>
174
173
  </div>
175
174
  </div>
@@ -194,7 +193,7 @@ exports[`<LineageForm /> matches the latest snapshot 1`] = `
194
193
  value="select"
195
194
  />
196
195
  <label>
197
- lineage.form.levels.select.label
196
+ Depth
198
197
  </label>
199
198
  </div>
200
199
  </div>
@@ -209,7 +208,7 @@ exports[`<LineageForm /> matches the latest snapshot 1`] = `
209
208
  <input
210
209
  autocomplete="off"
211
210
  min="1"
212
- placeholder="lineage.form.levels.select.input"
211
+ placeholder="Select..."
213
212
  type="number"
214
213
  value="4"
215
214
  />
@@ -220,21 +219,21 @@ exports[`<LineageForm /> matches the latest snapshot 1`] = `
220
219
  disabled=""
221
220
  tabindex="-1"
222
221
  >
223
- navigation.lineage.clean
222
+ Clean Selection
224
223
  </button>
225
224
  <button
226
225
  class="ui small primary disabled button"
227
226
  disabled=""
228
227
  tabindex="-1"
229
228
  >
230
- navigation.lineage.impact
229
+ Impact
231
230
  </button>
232
231
  <button
233
232
  class="ui small primary disabled button"
234
233
  disabled=""
235
234
  tabindex="-1"
236
235
  >
237
- navigation.lineage.lineage
236
+ Lineage
238
237
  </button>
239
238
  <span>
240
239
  <button