@ebertjendustries/cstestwrapper 1.0.4 → 1.0.6
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.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -420,6 +420,8 @@ declare abstract class AbstractComponentTesting<WrapperType extends ElementWrapp
|
|
|
420
420
|
expectEnabled(): void;
|
|
421
421
|
expectDisabled(): void;
|
|
422
422
|
click(): void;
|
|
423
|
+
expectReadOnly(): void;
|
|
424
|
+
expectNotReadOnly(): void;
|
|
423
425
|
expectChecked(): void;
|
|
424
426
|
expectNotChecked(): void;
|
|
425
427
|
expectCheckState(checked: boolean): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -420,6 +420,8 @@ declare abstract class AbstractComponentTesting<WrapperType extends ElementWrapp
|
|
|
420
420
|
expectEnabled(): void;
|
|
421
421
|
expectDisabled(): void;
|
|
422
422
|
click(): void;
|
|
423
|
+
expectReadOnly(): void;
|
|
424
|
+
expectNotReadOnly(): void;
|
|
423
425
|
expectChecked(): void;
|
|
424
426
|
expectNotChecked(): void;
|
|
425
427
|
expectCheckState(checked: boolean): void;
|
package/dist/index.js
CHANGED
|
@@ -160,6 +160,12 @@ var AbstractComponentTesting = class _AbstractComponentTesting {
|
|
|
160
160
|
element.click();
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
|
+
expectReadOnly() {
|
|
164
|
+
(0, import_vitest.expect)(this.getElement()).toHaveAttribute("readOnly", "true");
|
|
165
|
+
}
|
|
166
|
+
expectNotReadOnly() {
|
|
167
|
+
(0, import_vitest.expect)(this.getElement()).not.toHaveAttribute("readOnly");
|
|
168
|
+
}
|
|
163
169
|
expectChecked() {
|
|
164
170
|
(0, import_vitest.expect)(this.getElement(), this.msgForExpect()).toBeChecked();
|
|
165
171
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -80,6 +80,12 @@ var AbstractComponentTesting = class _AbstractComponentTesting {
|
|
|
80
80
|
element.click();
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
+
expectReadOnly() {
|
|
84
|
+
expect(this.getElement()).toHaveAttribute("readOnly", "true");
|
|
85
|
+
}
|
|
86
|
+
expectNotReadOnly() {
|
|
87
|
+
expect(this.getElement()).not.toHaveAttribute("readOnly");
|
|
88
|
+
}
|
|
83
89
|
expectChecked() {
|
|
84
90
|
expect(this.getElement(), this.msgForExpect()).toBeChecked();
|
|
85
91
|
}
|