@ebertjendustries/cstestwrapper 1.0.12 → 1.0.13
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 +2 -3
- package/dist/index.mjs +2 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -235,11 +235,10 @@ var AbstractInputTesting = class extends AbstractComponentTesting {
|
|
|
235
235
|
await this.expectErrorMessage(fieldValidityFunction(new import_cswrapper3.FieldSpec("", true), import_cswrapper2.ElementValidityLevel.REQUIRED_VALUE_IS_NOT_PRESENT));
|
|
236
236
|
}
|
|
237
237
|
expectReadOnly() {
|
|
238
|
-
|
|
239
|
-
(0, import_vitest2.expect)(this.getNativeHTMLInput()).toHaveAttribute("readonly", "true");
|
|
238
|
+
(0, import_vitest2.expect)(this.getNativeHTMLInput().readOnly).toBeTruthy();
|
|
240
239
|
}
|
|
241
240
|
expectNotReadOnly() {
|
|
242
|
-
(0, import_vitest2.expect)(this.getNativeHTMLInput()).
|
|
241
|
+
(0, import_vitest2.expect)(this.getNativeHTMLInput().readOnly).toBeFalsy();
|
|
243
242
|
}
|
|
244
243
|
expectEmpty() {
|
|
245
244
|
(0, import_vitest2.expect)(this.getNativeHTMLInput()).toHaveValue(null);
|
package/dist/index.mjs
CHANGED
|
@@ -154,11 +154,10 @@ var AbstractInputTesting = class extends AbstractComponentTesting {
|
|
|
154
154
|
await this.expectErrorMessage(fieldValidityFunction(new FieldSpec("", true), ElementValidityLevel.REQUIRED_VALUE_IS_NOT_PRESENT));
|
|
155
155
|
}
|
|
156
156
|
expectReadOnly() {
|
|
157
|
-
|
|
158
|
-
expect2(this.getNativeHTMLInput()).toHaveAttribute("readonly", "true");
|
|
157
|
+
expect2(this.getNativeHTMLInput().readOnly).toBeTruthy();
|
|
159
158
|
}
|
|
160
159
|
expectNotReadOnly() {
|
|
161
|
-
expect2(this.getNativeHTMLInput()).
|
|
160
|
+
expect2(this.getNativeHTMLInput().readOnly).toBeFalsy();
|
|
162
161
|
}
|
|
163
162
|
expectEmpty() {
|
|
164
163
|
expect2(this.getNativeHTMLInput()).toHaveValue(null);
|