@truedat/dd 6.11.1 → 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/dd",
3
- "version": "6.11.1",
3
+ "version": "6.12.1",
4
4
  "description": "Truedat Web Data Dictionary",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -88,9 +88,9 @@
88
88
  },
89
89
  "dependencies": {
90
90
  "@apollo/client": "^3.7.1",
91
- "@truedat/auth": "6.11.1",
92
- "@truedat/core": "6.11.1",
93
- "@truedat/df": "6.11.1",
91
+ "@truedat/auth": "6.12.1",
92
+ "@truedat/core": "6.12.1",
93
+ "@truedat/df": "6.12.1",
94
94
  "lodash": "^4.17.21",
95
95
  "moment": "^2.29.4",
96
96
  "path-to-regexp": "^1.7.0",
@@ -115,5 +115,5 @@
115
115
  "react-dom": ">= 16.8.6 < 17",
116
116
  "semantic-ui-react": ">= 2.0.3 < 2.2"
117
117
  },
118
- "gitHead": "a684646f8503335b666ea82b85a6c0aa8fbd2336"
118
+ "gitHead": "0e64673b5e798d15560f153c6ae0aede669b1dab"
119
119
  }
@@ -76,10 +76,11 @@ describe("<PendingStructureNotes />", () => {
76
76
  <PendingStructureNotes />,
77
77
  renderOpts
78
78
  );
79
- expect(container).toMatchSnapshot();
80
79
 
81
80
  await waitFor(() => {
82
81
  expect(queryByText(/foo system/)).toBeTruthy();
83
82
  });
83
+
84
+ expect(container).toMatchSnapshot();
84
85
  });
85
86
  });
@@ -33,12 +33,13 @@ const searchProps = {
33
33
  };
34
34
 
35
35
  describe("<PendingStructureNotesLabelResults />", () => {
36
- it("matches the latest snapshot", () => {
37
- const { container } = render(
36
+ it("matches the latest snapshot", async () => {
37
+ const { container, findByText } = render(
38
38
  <SearchContextProvider {...searchProps}>
39
39
  <PendingStructureNotesLabelResults />
40
40
  </SearchContextProvider>
41
41
  );
42
+ await findByText(/22 structures found/);
42
43
  expect(container).toMatchSnapshot();
43
44
  });
44
45
  });
@@ -32,12 +32,13 @@ const searchProps = {
32
32
  };
33
33
 
34
34
  describe("<PendingStructureNotesPagination />", () => {
35
- it("matches the latest snapshot", () => {
36
- const { container } = render(
35
+ it("matches the latest snapshot", async () => {
36
+ const { container, findByText } = render(
37
37
  <SearchContextProvider {...searchProps}>
38
38
  <PendingStructureNotesPagination />
39
39
  </SearchContextProvider>
40
40
  );
41
+ await findByText(/1/);
41
42
  expect(container).toMatchSnapshot();
42
43
  });
43
44
  });
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { waitFor } from "@testing-library/react";
2
3
  import { render } from "@truedat/test/render";
3
4
  import { StructureSelector } from "../StructureSelector";
4
5
 
@@ -62,7 +63,7 @@ const messages = {
62
63
  const renderOpts = { messages };
63
64
 
64
65
  describe("<StructureSelector />", () => {
65
- it("matches the latest snapshot", () => {
66
+ it("matches the latest snapshot", async () => {
66
67
  const columns = ["name", "system", "group"].map((name) => ({ name }));
67
68
 
68
69
  const structuresRows = [
@@ -76,6 +77,11 @@ describe("<StructureSelector />", () => {
76
77
  onSelect: jest.fn(),
77
78
  };
78
79
  const { container } = render(<StructureSelector {...props} />, renderOpts);
80
+
81
+ await waitFor(() => {
82
+ expect(container.querySelector(".loading")).toBeNull();
83
+ });
84
+
79
85
  expect(container).toMatchSnapshot();
80
86
  });
81
87
  });
@@ -33,12 +33,13 @@ const searchProps = {
33
33
  };
34
34
 
35
35
  describe("<StructuresLabelResults />", () => {
36
- it("matches the latest snapshot", () => {
37
- const { container } = render(
36
+ it("matches the latest snapshot", async () => {
37
+ const { container, findByText } = render(
38
38
  <SearchContextProvider {...searchProps}>
39
39
  <StructuresLabelResults />
40
40
  </SearchContextProvider>
41
41
  );
42
+ await findByText(/22 structures found/);
42
43
  expect(container).toMatchSnapshot();
43
44
  });
44
45
  });
@@ -42,12 +42,14 @@ describe("<StructuresOptions />", () => {
42
42
  };
43
43
 
44
44
  it("matches the latest snapshot", async () => {
45
- const { container } = render(
45
+ const { container, findByText } = render(
46
46
  <SearchContextProvider {...searchProps}>
47
47
  <StructuresOptions {...props} />
48
48
  </SearchContextProvider>
49
49
  );
50
50
 
51
+ await findByText(/Download editable structures metadata/);
52
+
51
53
  await waitFor(() => expect(container).toMatchSnapshot());
52
54
  });
53
55