@truedat/df 8.12.0 → 8.12.2

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/df",
3
- "version": "8.12.0",
3
+ "version": "8.12.2",
4
4
  "description": "Truedat Web Data Quality Module",
5
5
  "sideEffects": false,
6
6
  "module": "src/index.js",
@@ -54,14 +54,14 @@
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.0",
57
+ "@truedat/test": "8.12.2",
58
58
  "identity-obj-proxy": "^3.0.0",
59
59
  "jest": "^29.7.0",
60
60
  "redux-saga-test-plan": "^4.0.6"
61
61
  },
62
62
  "dependencies": {
63
63
  "@apollo/client": "^3.13.8",
64
- "@truedat/core": "8.12.0",
64
+ "@truedat/core": "8.12.2",
65
65
  "axios": "^1.15.0",
66
66
  "graphql": "^16.11.0",
67
67
  "is-hotkey": "^0.2.0",
@@ -90,5 +90,5 @@
90
90
  "semantic-ui-react": "^3.0.0-beta.2",
91
91
  "swr": "^2.3.3"
92
92
  },
93
- "gitHead": "5a1ec38d4529e465f53b6305fca90332eac271f3"
93
+ "gitHead": "b0000f1b2727cad43ce3c3eb2fa29681488dd2ec"
94
94
  }
@@ -119,6 +119,23 @@ describe("<SelectableDynamicForm />", () => {
119
119
  await waitForLoad(rendered);
120
120
  expect(rendered.container).toMatchSnapshot();
121
121
  });
122
+
123
+ it("does not auto-select a template when none is default", async () => {
124
+ const onNameChange = jest.fn();
125
+ const thisProps = {
126
+ ...props,
127
+ onNameChange,
128
+ };
129
+ const rendered = render(
130
+ <SelectableDynamicForm {...thisProps} />,
131
+ renderOpts,
132
+ );
133
+ await waitForLoad(rendered);
134
+ expect(onNameChange).not.toHaveBeenCalled();
135
+ expect(rendered.getByRole("alert")).toHaveTextContent(
136
+ /template\.selector\.placeholder/i,
137
+ );
138
+ });
122
139
  });
123
140
 
124
141
  describe("with single template", () => {