@truedat/dq 7.6.0 → 7.6.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/dq",
3
- "version": "7.6.0",
3
+ "version": "7.6.2",
4
4
  "description": "Truedat Web Data Quality Module",
5
5
  "sideEffects": false,
6
6
  "module": "src/index.js",
@@ -53,7 +53,7 @@
53
53
  "@testing-library/jest-dom": "^6.6.3",
54
54
  "@testing-library/react": "^16.3.0",
55
55
  "@testing-library/user-event": "^14.6.1",
56
- "@truedat/test": "7.6.0",
56
+ "@truedat/test": "7.6.2",
57
57
  "identity-obj-proxy": "^3.0.0",
58
58
  "jest": "^29.7.0",
59
59
  "redux-saga-test-plan": "^4.0.6"
@@ -87,5 +87,5 @@
87
87
  "semantic-ui-react": "^3.0.0-beta.2",
88
88
  "swr": "^2.3.3"
89
89
  },
90
- "gitHead": "0d9c5ee7b864fe3dc87def2be0f68191c04dee57"
90
+ "gitHead": "413392c768bdc4e352be8863a70b031483b9ca88"
91
91
  }
@@ -5,12 +5,12 @@ import RemediationForm from "../RemediationForm";
5
5
 
6
6
  const renderOpts = {
7
7
  mocks: [multipleTemplatesMock({ scope: "remediation", domainIds: [1] })],
8
- state: { remediation: {}, ruleImplementation: { domain_id: 1 } },
8
+ state: { remediation: { df_name: "template1" }, ruleImplementation: { domain_id: 1 } },
9
9
  };
10
10
 
11
11
  describe("<RemediationForm />", () => {
12
12
  it("matches the latest snapshot", async () => {
13
- const { container, queryByText } = render(<RemediationForm />, renderOpts);
13
+ const { container, queryByText } = render(<RemediationForm remediation={{ df_name: "template1" }} />, renderOpts);
14
14
  await waitFor(() => expect(queryByText(/lazy/i)).not.toBeInTheDocument());
15
15
  await waitFor(() =>
16
16
  expect(queryByText(/loading/i)).not.toBeInTheDocument()
@@ -11,11 +11,6 @@ exports[`<RemediationForm /> matches the latest snapshot 1`] = `
11
11
  >
12
12
  <label>
13
13
  template.selector.label
14
- <div
15
- class="ui left pointing label"
16
- >
17
- template.form.validation.empty_required
18
- </div>
19
14
  </label>
20
15
  <div
21
16
  class="field"
@@ -38,10 +33,10 @@ exports[`<RemediationForm /> matches the latest snapshot 1`] = `
38
33
  <div
39
34
  aria-atomic="true"
40
35
  aria-live="polite"
41
- class="divider default text"
36
+ class="divider text"
42
37
  role="alert"
43
38
  >
44
- template.selector.placeholder
39
+ template1
45
40
  </div>
46
41
  <i
47
42
  aria-hidden="true"
@@ -52,9 +47,9 @@ exports[`<RemediationForm /> matches the latest snapshot 1`] = `
52
47
  role="listbox"
53
48
  >
54
49
  <div
55
- aria-checked="false"
50
+ aria-checked="true"
56
51
  aria-selected="true"
57
- class="selected item"
52
+ class="active selected item"
58
53
  role="option"
59
54
  style="pointer-events: all;"
60
55
  >
@@ -81,10 +76,41 @@ exports[`<RemediationForm /> matches the latest snapshot 1`] = `
81
76
  </div>
82
77
  </div>
83
78
  </div>
79
+ <div
80
+ class="ui segment"
81
+ >
82
+ <h4
83
+ class="ui header"
84
+ >
85
+ g1
86
+ </h4>
87
+ <div
88
+ class="field"
89
+ data-testid="form-field"
90
+ >
91
+ <label>
92
+ field1
93
+ </label>
94
+ <div
95
+ class="field"
96
+ >
97
+ <div
98
+ class="ui input"
99
+ >
100
+ <input
101
+ name="field1"
102
+ placeholder="field1"
103
+ type="text"
104
+ value=""
105
+ />
106
+ </div>
107
+ </div>
108
+ </div>
109
+ </div>
84
110
  <button
85
111
  class="ui primary button"
86
112
  >
87
- actions.create
113
+ actions.save
88
114
  </button>
89
115
  </form>
90
116
  </div>