@truedat/qx 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/qx",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.1",
|
|
4
4
|
"description": "Truedat Web Quality Experience package",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@truedat/core": "6.12.
|
|
87
|
+
"@truedat/core": "6.12.1",
|
|
88
88
|
"prop-types": "^15.8.1",
|
|
89
89
|
"react-hook-form": "^7.45.4",
|
|
90
90
|
"react-intl": "^5.20.10",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"react-dom": ">= 16.8.6 < 17",
|
|
98
98
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "0e64673b5e798d15560f153c6ae0aede669b1dab"
|
|
101
101
|
}
|
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { act } from "react-dom/test-utils";
|
|
3
3
|
import userEvent from "@testing-library/user-event";
|
|
4
4
|
import { render } from "@truedat/test/render";
|
|
5
|
+
import { waitFor } from "@testing-library/react";
|
|
5
6
|
import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
|
|
6
7
|
import SearchContext from "@truedat/core/search/SearchContext";
|
|
7
8
|
import ResourceSelector from "../ResourceSelector";
|
|
@@ -128,6 +129,9 @@ describe("<ResourceSelector />", () => {
|
|
|
128
129
|
userEvent.click(await getByRole("option", { name: /data_structure/i }));
|
|
129
130
|
});
|
|
130
131
|
|
|
132
|
+
await waitFor(() => {
|
|
133
|
+
expect(container.querySelector(".loading")).toBeNull();
|
|
134
|
+
});
|
|
131
135
|
expect(container).toMatchSnapshot();
|
|
132
136
|
});
|
|
133
137
|
|
|
@@ -46,12 +46,13 @@ const renderOpts = {
|
|
|
46
46
|
|
|
47
47
|
describe("<DataStructureSelector />", () => {
|
|
48
48
|
it("matches the latest snapshot", async () => {
|
|
49
|
-
const { container } = render(
|
|
49
|
+
const { container, findByText } = render(
|
|
50
50
|
<TestFormWrapper>
|
|
51
51
|
<DataStructureSelector />
|
|
52
52
|
</TestFormWrapper>,
|
|
53
53
|
renderOpts
|
|
54
54
|
);
|
|
55
|
+
await findByText(/header/);
|
|
55
56
|
|
|
56
57
|
await act(async () => {
|
|
57
58
|
expect(container).toMatchSnapshot();
|