@ebertjendustries/cstestwrapper 1.0.7 → 1.0.9
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/dist/index.js +8 -2
- package/dist/index.mjs +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -67,6 +67,7 @@ __export(index_exports, {
|
|
|
67
67
|
StringInputTesting: () => StringInputTesting,
|
|
68
68
|
TableTesting: () => TableTesting,
|
|
69
69
|
TabsTesting: () => TabsTesting,
|
|
70
|
+
TestLocalisation: () => TestLocalisation,
|
|
70
71
|
TestingFactory: () => TestingFactory,
|
|
71
72
|
TextContentTesting: () => TextContentTesting,
|
|
72
73
|
TextFilterTesting: () => TextFilterTesting,
|
|
@@ -78,6 +79,10 @@ __export(index_exports, {
|
|
|
78
79
|
});
|
|
79
80
|
module.exports = __toCommonJS(index_exports);
|
|
80
81
|
|
|
82
|
+
// src/localisation/TestLocalisation.ts
|
|
83
|
+
var TestLocalisation = class {
|
|
84
|
+
};
|
|
85
|
+
|
|
81
86
|
// src/components/AbstractComponentTesting.ts
|
|
82
87
|
var import_dom = __toESM(require("@cloudscape-design/components/test-utils/dom"));
|
|
83
88
|
var import_react = require("@testing-library/react");
|
|
@@ -161,10 +166,10 @@ var AbstractComponentTesting = class _AbstractComponentTesting {
|
|
|
161
166
|
});
|
|
162
167
|
}
|
|
163
168
|
expectReadOnly() {
|
|
164
|
-
(0, import_vitest.expect)(this.getElement()).toHaveAttribute("
|
|
169
|
+
(0, import_vitest.expect)(this.getElement()).toHaveAttribute("readonly", "true");
|
|
165
170
|
}
|
|
166
171
|
expectNotReadOnly() {
|
|
167
|
-
(0, import_vitest.expect)(this.getElement()).not.toHaveAttribute("
|
|
172
|
+
(0, import_vitest.expect)(this.getElement()).not.toHaveAttribute("readonly");
|
|
168
173
|
}
|
|
169
174
|
expectChecked() {
|
|
170
175
|
(0, import_vitest.expect)(this.getElement(), this.msgForExpect()).toBeChecked();
|
|
@@ -1915,6 +1920,7 @@ function ViewTestWrapper(props) {
|
|
|
1915
1920
|
StringInputTesting,
|
|
1916
1921
|
TableTesting,
|
|
1917
1922
|
TabsTesting,
|
|
1923
|
+
TestLocalisation,
|
|
1918
1924
|
TestingFactory,
|
|
1919
1925
|
TextContentTesting,
|
|
1920
1926
|
TextFilterTesting,
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
// src/localisation/TestLocalisation.ts
|
|
2
|
+
var TestLocalisation = class {
|
|
3
|
+
};
|
|
4
|
+
|
|
1
5
|
// src/components/AbstractComponentTesting.ts
|
|
2
6
|
import wrapper from "@cloudscape-design/components/test-utils/dom";
|
|
3
7
|
import { screen, waitForElementToBeRemoved } from "@testing-library/react";
|
|
@@ -81,10 +85,10 @@ var AbstractComponentTesting = class _AbstractComponentTesting {
|
|
|
81
85
|
});
|
|
82
86
|
}
|
|
83
87
|
expectReadOnly() {
|
|
84
|
-
expect(this.getElement()).toHaveAttribute("
|
|
88
|
+
expect(this.getElement()).toHaveAttribute("readonly", "true");
|
|
85
89
|
}
|
|
86
90
|
expectNotReadOnly() {
|
|
87
|
-
expect(this.getElement()).not.toHaveAttribute("
|
|
91
|
+
expect(this.getElement()).not.toHaveAttribute("readonly");
|
|
88
92
|
}
|
|
89
93
|
expectChecked() {
|
|
90
94
|
expect(this.getElement(), this.msgForExpect()).toBeChecked();
|
|
@@ -1836,6 +1840,7 @@ export {
|
|
|
1836
1840
|
StringInputTesting,
|
|
1837
1841
|
TableTesting,
|
|
1838
1842
|
TabsTesting,
|
|
1843
|
+
TestLocalisation,
|
|
1839
1844
|
TestingFactory,
|
|
1840
1845
|
TextContentTesting,
|
|
1841
1846
|
TextFilterTesting,
|