@truedat/cx 8.12.1 → 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/cx",
|
|
3
|
-
"version": "8.12.
|
|
3
|
+
"version": "8.12.4",
|
|
4
4
|
"description": "Truedat Web Connectors",
|
|
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.
|
|
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"
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"semantic-ui-react": "^3.0.0-beta.2",
|
|
88
88
|
"swr": "^2.3.3"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "d5bc1af84c4d828bdec676b0da58385cf0d6015f"
|
|
91
91
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { render, waitForLoad } from "@truedat/test/render";
|
|
2
|
+
import { multipleTemplatesMock } from "@truedat/test/mocks";
|
|
2
3
|
import { NewSource } from "../NewSource";
|
|
3
4
|
|
|
4
5
|
describe("<NewSource />", () => {
|
|
@@ -6,7 +7,9 @@ describe("<NewSource />", () => {
|
|
|
6
7
|
const props = { createSource };
|
|
7
8
|
|
|
8
9
|
it("matches the latest snapshot", async () => {
|
|
9
|
-
const rendered = render(<NewSource {...props}
|
|
10
|
+
const rendered = render(<NewSource {...props} />, {
|
|
11
|
+
mocks: [multipleTemplatesMock({ scope: "cx" })],
|
|
12
|
+
});
|
|
10
13
|
await waitForLoad(rendered);
|
|
11
14
|
expect(rendered.container).toMatchSnapshot();
|
|
12
15
|
});
|
|
@@ -38,6 +38,126 @@ exports[`<NewSource /> matches the latest snapshot 1`] = `
|
|
|
38
38
|
sources.actions.create
|
|
39
39
|
</div>
|
|
40
40
|
</h2>
|
|
41
|
+
<form
|
|
42
|
+
class="ui form"
|
|
43
|
+
>
|
|
44
|
+
<div
|
|
45
|
+
class="required field"
|
|
46
|
+
>
|
|
47
|
+
<label>
|
|
48
|
+
source.external_id
|
|
49
|
+
<div
|
|
50
|
+
class="ui left pointing label"
|
|
51
|
+
>
|
|
52
|
+
template.form.validation.empty_required
|
|
53
|
+
</div>
|
|
54
|
+
</label>
|
|
55
|
+
<div
|
|
56
|
+
class="field"
|
|
57
|
+
>
|
|
58
|
+
<div
|
|
59
|
+
class="ui input"
|
|
60
|
+
>
|
|
61
|
+
<input
|
|
62
|
+
name="external_id"
|
|
63
|
+
type="text"
|
|
64
|
+
value=""
|
|
65
|
+
/>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
<div
|
|
70
|
+
class="required field"
|
|
71
|
+
>
|
|
72
|
+
<label>
|
|
73
|
+
type.selector.label
|
|
74
|
+
</label>
|
|
75
|
+
<div
|
|
76
|
+
class="required field"
|
|
77
|
+
>
|
|
78
|
+
<div
|
|
79
|
+
aria-busy="false"
|
|
80
|
+
aria-disabled="false"
|
|
81
|
+
aria-expanded="false"
|
|
82
|
+
class="ui search selection dropdown"
|
|
83
|
+
name="type"
|
|
84
|
+
required=""
|
|
85
|
+
role="combobox"
|
|
86
|
+
>
|
|
87
|
+
<input
|
|
88
|
+
aria-autocomplete="list"
|
|
89
|
+
autocomplete="off"
|
|
90
|
+
class="search"
|
|
91
|
+
tabindex="0"
|
|
92
|
+
type="text"
|
|
93
|
+
value=""
|
|
94
|
+
/>
|
|
95
|
+
<div
|
|
96
|
+
aria-atomic="true"
|
|
97
|
+
aria-live="polite"
|
|
98
|
+
class="divider default text"
|
|
99
|
+
role="alert"
|
|
100
|
+
>
|
|
101
|
+
type.selector.placeholder
|
|
102
|
+
</div>
|
|
103
|
+
<i
|
|
104
|
+
aria-hidden="true"
|
|
105
|
+
class="dropdown icon"
|
|
106
|
+
/>
|
|
107
|
+
<div
|
|
108
|
+
class="menu transition"
|
|
109
|
+
role="listbox"
|
|
110
|
+
>
|
|
111
|
+
<div
|
|
112
|
+
aria-checked="false"
|
|
113
|
+
aria-selected="true"
|
|
114
|
+
class="selected item"
|
|
115
|
+
role="option"
|
|
116
|
+
style="pointer-events: all;"
|
|
117
|
+
>
|
|
118
|
+
<span
|
|
119
|
+
class="text"
|
|
120
|
+
>
|
|
121
|
+
template1
|
|
122
|
+
</span>
|
|
123
|
+
</div>
|
|
124
|
+
<div
|
|
125
|
+
aria-checked="false"
|
|
126
|
+
aria-selected="false"
|
|
127
|
+
class="item"
|
|
128
|
+
role="option"
|
|
129
|
+
style="pointer-events: all;"
|
|
130
|
+
>
|
|
131
|
+
<span
|
|
132
|
+
class="text"
|
|
133
|
+
>
|
|
134
|
+
template2
|
|
135
|
+
</span>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
<div
|
|
142
|
+
class="actions"
|
|
143
|
+
>
|
|
144
|
+
<a
|
|
145
|
+
class="ui secondary button td-icon-text-control"
|
|
146
|
+
data-discover="true"
|
|
147
|
+
href="/"
|
|
148
|
+
role="button"
|
|
149
|
+
>
|
|
150
|
+
actions.cancel
|
|
151
|
+
</a>
|
|
152
|
+
<button
|
|
153
|
+
class="ui primary disabled button"
|
|
154
|
+
disabled=""
|
|
155
|
+
tabindex="-1"
|
|
156
|
+
>
|
|
157
|
+
actions.create
|
|
158
|
+
</button>
|
|
159
|
+
</div>
|
|
160
|
+
</form>
|
|
41
161
|
</div>
|
|
42
162
|
</div>
|
|
43
163
|
`;
|