@truedat/audit 8.12.2 → 8.12.4

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/audit",
3
- "version": "8.12.2",
3
+ "version": "8.12.4",
4
4
  "description": "Truedat Web Audit Module",
5
5
  "sideEffects": false,
6
6
  "module": "src/index.js",
@@ -54,7 +54,7 @@
54
54
  "@testing-library/jest-dom": "^6.6.3",
55
55
  "@testing-library/react": "^16.3.0",
56
56
  "@testing-library/user-event": "^14.6.1",
57
- "@truedat/test": "8.12.2",
57
+ "@truedat/test": "8.12.4",
58
58
  "identity-obj-proxy": "^3.0.0",
59
59
  "jest": "^29.7.0",
60
60
  "redux-saga-test-plan": "^4.0.6"
@@ -86,5 +86,5 @@
86
86
  "semantic-ui-react": "^3.0.0-beta.2",
87
87
  "swr": "^2.3.3"
88
88
  },
89
- "gitHead": "b0000f1b2727cad43ce3c3eb2fa29681488dd2ec"
89
+ "gitHead": "d5bc1af84c4d828bdec676b0da58385cf0d6015f"
90
90
  }
@@ -56,9 +56,11 @@ const searchProps = {
56
56
  };
57
57
 
58
58
  describe("<SubscriptionForm />", () => {
59
+ beforeEach(() => jest.useRealTimers());
60
+
59
61
  it("matches the latest snapshot", async () => {
60
62
  const rendered = render(<SubscriptionForm />, renderOpts);
61
- await waitForLoad(rendered);
63
+ await waitForLoad(rendered, /loading/i, { timeout: 5000 });
62
64
  expect(rendered.container).toMatchSnapshot();
63
65
  });
64
66
 
@@ -102,10 +104,12 @@ describe("<SubscriptionForm />", () => {
102
104
  // Select concept and taxonomy_role
103
105
  await user.click(rendered.getByText("concept"));
104
106
 
105
- await waitFor(() =>
106
- expect(
107
- rendered.getByText(/concepts.search.results.empty/i),
108
- ).toBeInTheDocument(),
107
+ await waitFor(
108
+ () =>
109
+ expect(
110
+ rendered.getByText(/concepts.search.results.empty/i),
111
+ ).toBeInTheDocument(),
112
+ { timeout: 5000 },
109
113
  );
110
114
 
111
115
  await user.click(rendered.getByText("taxonomy_role"));
@@ -125,10 +129,12 @@ describe("<SubscriptionForm />", () => {
125
129
  // Select user
126
130
  await user.click(rendered.getByText(/user/i));
127
131
 
128
- await waitFor(() =>
129
- expect(
130
- rendered.getByText(/user.search.placeholder/i),
131
- ).toBeInTheDocument(),
132
+ await waitFor(
133
+ () =>
134
+ expect(
135
+ rendered.getByText(/user.search.placeholder/i),
136
+ ).toBeInTheDocument(),
137
+ { timeout: 5000 },
132
138
  );
133
139
 
134
140
  await user.click(await rendered.findByText(/user2/i));
@@ -146,10 +152,12 @@ describe("<SubscriptionForm />", () => {
146
152
  await user.click(rendered.getByText(/structure/i));
147
153
 
148
154
  // Wait for loading to disappear
149
- await waitFor(() =>
150
- expect(
151
- rendered.getByText(/structures.not_found.body/i),
152
- ).toBeInTheDocument(),
155
+ await waitFor(
156
+ () =>
157
+ expect(
158
+ rendered.getByText(/structures.not_found.body/i),
159
+ ).toBeInTheDocument(),
160
+ { timeout: 5000 },
153
161
  );
154
162
 
155
163
  expect(rendered.container.querySelector(".loading")).toBeNull();