@truedat/lm 6.12.0 → 6.12.1
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/lm",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.1",
|
|
4
4
|
"description": "Truedat Link Manager",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@truedat/core": "6.12.
|
|
89
|
+
"@truedat/core": "6.12.1",
|
|
90
90
|
"path-to-regexp": "^1.7.0",
|
|
91
91
|
"prop-types": "^15.8.1",
|
|
92
92
|
"react-graph-vis": "1.0.6",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"react-dom": ">= 16.8.6 < 17",
|
|
108
108
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "0e64673b5e798d15560f153c6ae0aede669b1dab"
|
|
111
111
|
}
|
|
@@ -118,7 +118,7 @@ const renderOpts = {
|
|
|
118
118
|
|
|
119
119
|
describe("<ImplementationRelationForm />", () => {
|
|
120
120
|
it("matches the latest snapshot", async () => {
|
|
121
|
-
const { container, getByText,
|
|
121
|
+
const { container, getByText, findByText } = render(
|
|
122
122
|
<ImplementationRelationForm {...props} />,
|
|
123
123
|
renderOpts
|
|
124
124
|
);
|
|
@@ -129,7 +129,10 @@ describe("<ImplementationRelationForm />", () => {
|
|
|
129
129
|
},
|
|
130
130
|
{ timeout: 60000 }
|
|
131
131
|
);
|
|
132
|
-
userEvent.click(await
|
|
132
|
+
userEvent.click(await findByText(/some/));
|
|
133
|
+
await waitFor(() => {
|
|
134
|
+
expect(container.querySelector(".loading")).toBeNull();
|
|
135
|
+
});
|
|
133
136
|
expect(container).toMatchSnapshot();
|
|
134
137
|
});
|
|
135
138
|
|
|
@@ -139,8 +142,10 @@ describe("<ImplementationRelationForm />", () => {
|
|
|
139
142
|
conceptLinking: true,
|
|
140
143
|
};
|
|
141
144
|
|
|
142
|
-
const {
|
|
143
|
-
|
|
145
|
+
const { queryByRole, getByText, findByRole, findByText } = render(
|
|
146
|
+
<ImplementationRelationForm {...newProps} />,
|
|
147
|
+
renderOpts
|
|
148
|
+
);
|
|
144
149
|
|
|
145
150
|
await waitFor(() => {
|
|
146
151
|
expect(getByText(/relates_to/)).toBeInTheDocument();
|
|
@@ -148,7 +153,7 @@ describe("<ImplementationRelationForm />", () => {
|
|
|
148
153
|
|
|
149
154
|
expect(queryByRole("button", { name: /Create/ })).toBeDisabled();
|
|
150
155
|
userEvent.click(await findByText(/relates_to/));
|
|
151
|
-
userEvent.click(await
|
|
156
|
+
userEvent.click(await findByText(/bar concept/));
|
|
152
157
|
|
|
153
158
|
await waitFor(() => {
|
|
154
159
|
expect(queryByRole("button", { name: /Create/ })).toBeEnabled();
|
|
@@ -162,7 +167,7 @@ describe("<ImplementationRelationForm />", () => {
|
|
|
162
167
|
});
|
|
163
168
|
|
|
164
169
|
it("submits the selected relation", async () => {
|
|
165
|
-
const {
|
|
170
|
+
const { getByText, findByRole, findByText } = render(
|
|
166
171
|
<ImplementationRelationForm {...props} />,
|
|
167
172
|
renderOpts
|
|
168
173
|
);
|
|
@@ -172,7 +177,7 @@ describe("<ImplementationRelationForm />", () => {
|
|
|
172
177
|
});
|
|
173
178
|
|
|
174
179
|
userEvent.click(await findByText(/relates_to/));
|
|
175
|
-
userEvent.click(await
|
|
180
|
+
userEvent.click(await findByText(/bar concept/));
|
|
176
181
|
|
|
177
182
|
userEvent.click(await findByRole("button", { name: /Create/ }));
|
|
178
183
|
|
|
@@ -132,6 +132,9 @@ describe("<StructureRelationForm />", () => {
|
|
|
132
132
|
{ timeout: 60000 }
|
|
133
133
|
);
|
|
134
134
|
|
|
135
|
+
await waitFor(() => {
|
|
136
|
+
expect(container.querySelector(".loading")).toBeNull();
|
|
137
|
+
});
|
|
135
138
|
expect(container).toMatchSnapshot();
|
|
136
139
|
});
|
|
137
140
|
|
|
@@ -141,8 +144,10 @@ describe("<StructureRelationForm />", () => {
|
|
|
141
144
|
conceptLinking: true,
|
|
142
145
|
};
|
|
143
146
|
|
|
144
|
-
const {
|
|
145
|
-
|
|
147
|
+
const { queryByRole, getByText, findByRole, findByText } = render(
|
|
148
|
+
<StructureRelationForm {...newProps} />,
|
|
149
|
+
renderOpts
|
|
150
|
+
);
|
|
146
151
|
|
|
147
152
|
await waitFor(() => {
|
|
148
153
|
expect(getByText(/relates_to/)).toBeInTheDocument();
|
|
@@ -150,7 +155,7 @@ describe("<StructureRelationForm />", () => {
|
|
|
150
155
|
|
|
151
156
|
expect(queryByRole("button", { name: /Create/ })).toBeDisabled();
|
|
152
157
|
userEvent.click(await findByText(/relates_to/));
|
|
153
|
-
userEvent.click(await
|
|
158
|
+
userEvent.click(await findByText(/bar concept/));
|
|
154
159
|
|
|
155
160
|
await waitFor(() => {
|
|
156
161
|
expect(queryByRole("button", { name: /Create/ })).toBeEnabled();
|
|
@@ -164,7 +169,7 @@ describe("<StructureRelationForm />", () => {
|
|
|
164
169
|
});
|
|
165
170
|
|
|
166
171
|
it("submits the selected relation", async () => {
|
|
167
|
-
const {
|
|
172
|
+
const { getByText, findByRole, findByText } = render(
|
|
168
173
|
<StructureRelationForm {...props} />,
|
|
169
174
|
renderOpts
|
|
170
175
|
);
|
|
@@ -174,7 +179,7 @@ describe("<StructureRelationForm />", () => {
|
|
|
174
179
|
});
|
|
175
180
|
|
|
176
181
|
userEvent.click(await findByText(/relates_to/));
|
|
177
|
-
userEvent.click(await
|
|
182
|
+
userEvent.click(await findByText(/bar concept/));
|
|
178
183
|
|
|
179
184
|
userEvent.click(await findByRole("button", { name: /Create/ }));
|
|
180
185
|
|