@ebertjendustries/cstestwrapper 1.0.5 → 1.0.7

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 CHANGED
@@ -10,8 +10,8 @@ import React from 'react';
10
10
  /**
11
11
  * Implemented by the application importing the library to provide their own Localiser implementation used for testing.
12
12
  */
13
- interface TestLocalisation {
14
- getLocaliser(namespace: LocalisationNamespace): Localiser;
13
+ declare abstract class TestLocalisation {
14
+ abstract getLocaliser(namespace: LocalisationNamespace): Localiser;
15
15
  }
16
16
 
17
17
  declare class AbstractSelectTesting<SelectWrapperType extends DropdownHostComponentWrapper> extends AbstractComponentTesting<SelectWrapperType, FieldSpec> {
@@ -421,6 +421,7 @@ declare abstract class AbstractComponentTesting<WrapperType extends ElementWrapp
421
421
  expectDisabled(): void;
422
422
  click(): void;
423
423
  expectReadOnly(): void;
424
+ expectNotReadOnly(): void;
424
425
  expectChecked(): void;
425
426
  expectNotChecked(): void;
426
427
  expectCheckState(checked: boolean): void;
@@ -567,4 +568,4 @@ declare class ViewTestWrapperProps<T> {
567
568
  }
568
569
  declare function ViewTestWrapper<T>(props: ViewTestWrapperProps<T>): react_jsx_runtime.JSX.Element;
569
570
 
570
- export { AbstractComponentTesting, AbstractInputTesting, AbstractSelectTesting, AbstractViewTesting, AlertTesting, BoxTesting, ButtonDropdownTesting, ButtonTesting, CSVNoItemsViewTesting, CSVPriceInputViewTesting, CSVSearchFilterViewTesting, CSVTextPromptModalViewTesting, CardsTesting, CheckboxTesting, CollectionPreferencesSetting, CollectionPreferencesTesting, DatePickerTesting, FlashbarTesting, FormTesting, HeaderTesting, IconTesting, LinkTesting, MockBrowserAPIs, MockRestClient, MockServerBuilder, ModalTesting, MultiselectTesting, NumberInputTesting, PaginationTesting, ProgressBarTesting, RatingTesting, SegmentedControlTesting, SelectTesting, StatusIndicatorTesting, StringInputTesting, TableTesting, TabsTesting, type TestLocalisation, TestingFactory, TextContentTesting, TextFilterTesting, TextareaTesting, ToggleTesting, ViewTestWrapper, WizardTesting, setupRestClientMock };
571
+ export { AbstractComponentTesting, AbstractInputTesting, AbstractSelectTesting, AbstractViewTesting, AlertTesting, BoxTesting, ButtonDropdownTesting, ButtonTesting, CSVNoItemsViewTesting, CSVPriceInputViewTesting, CSVSearchFilterViewTesting, CSVTextPromptModalViewTesting, CardsTesting, CheckboxTesting, CollectionPreferencesSetting, CollectionPreferencesTesting, DatePickerTesting, FlashbarTesting, FormTesting, HeaderTesting, IconTesting, LinkTesting, MockBrowserAPIs, MockRestClient, MockServerBuilder, ModalTesting, MultiselectTesting, NumberInputTesting, PaginationTesting, ProgressBarTesting, RatingTesting, SegmentedControlTesting, SelectTesting, StatusIndicatorTesting, StringInputTesting, TableTesting, TabsTesting, TestLocalisation, TestingFactory, TextContentTesting, TextFilterTesting, TextareaTesting, ToggleTesting, ViewTestWrapper, WizardTesting, setupRestClientMock };
package/dist/index.d.ts CHANGED
@@ -10,8 +10,8 @@ import React from 'react';
10
10
  /**
11
11
  * Implemented by the application importing the library to provide their own Localiser implementation used for testing.
12
12
  */
13
- interface TestLocalisation {
14
- getLocaliser(namespace: LocalisationNamespace): Localiser;
13
+ declare abstract class TestLocalisation {
14
+ abstract getLocaliser(namespace: LocalisationNamespace): Localiser;
15
15
  }
16
16
 
17
17
  declare class AbstractSelectTesting<SelectWrapperType extends DropdownHostComponentWrapper> extends AbstractComponentTesting<SelectWrapperType, FieldSpec> {
@@ -421,6 +421,7 @@ declare abstract class AbstractComponentTesting<WrapperType extends ElementWrapp
421
421
  expectDisabled(): void;
422
422
  click(): void;
423
423
  expectReadOnly(): void;
424
+ expectNotReadOnly(): void;
424
425
  expectChecked(): void;
425
426
  expectNotChecked(): void;
426
427
  expectCheckState(checked: boolean): void;
@@ -567,4 +568,4 @@ declare class ViewTestWrapperProps<T> {
567
568
  }
568
569
  declare function ViewTestWrapper<T>(props: ViewTestWrapperProps<T>): react_jsx_runtime.JSX.Element;
569
570
 
570
- export { AbstractComponentTesting, AbstractInputTesting, AbstractSelectTesting, AbstractViewTesting, AlertTesting, BoxTesting, ButtonDropdownTesting, ButtonTesting, CSVNoItemsViewTesting, CSVPriceInputViewTesting, CSVSearchFilterViewTesting, CSVTextPromptModalViewTesting, CardsTesting, CheckboxTesting, CollectionPreferencesSetting, CollectionPreferencesTesting, DatePickerTesting, FlashbarTesting, FormTesting, HeaderTesting, IconTesting, LinkTesting, MockBrowserAPIs, MockRestClient, MockServerBuilder, ModalTesting, MultiselectTesting, NumberInputTesting, PaginationTesting, ProgressBarTesting, RatingTesting, SegmentedControlTesting, SelectTesting, StatusIndicatorTesting, StringInputTesting, TableTesting, TabsTesting, type TestLocalisation, TestingFactory, TextContentTesting, TextFilterTesting, TextareaTesting, ToggleTesting, ViewTestWrapper, WizardTesting, setupRestClientMock };
571
+ export { AbstractComponentTesting, AbstractInputTesting, AbstractSelectTesting, AbstractViewTesting, AlertTesting, BoxTesting, ButtonDropdownTesting, ButtonTesting, CSVNoItemsViewTesting, CSVPriceInputViewTesting, CSVSearchFilterViewTesting, CSVTextPromptModalViewTesting, CardsTesting, CheckboxTesting, CollectionPreferencesSetting, CollectionPreferencesTesting, DatePickerTesting, FlashbarTesting, FormTesting, HeaderTesting, IconTesting, LinkTesting, MockBrowserAPIs, MockRestClient, MockServerBuilder, ModalTesting, MultiselectTesting, NumberInputTesting, PaginationTesting, ProgressBarTesting, RatingTesting, SegmentedControlTesting, SelectTesting, StatusIndicatorTesting, StringInputTesting, TableTesting, TabsTesting, TestLocalisation, TestingFactory, TextContentTesting, TextFilterTesting, TextareaTesting, ToggleTesting, ViewTestWrapper, WizardTesting, setupRestClientMock };
package/dist/index.js CHANGED
@@ -163,6 +163,9 @@ var AbstractComponentTesting = class _AbstractComponentTesting {
163
163
  expectReadOnly() {
164
164
  (0, import_vitest.expect)(this.getElement()).toHaveAttribute("readOnly", "true");
165
165
  }
166
+ expectNotReadOnly() {
167
+ (0, import_vitest.expect)(this.getElement()).not.toHaveAttribute("readOnly");
168
+ }
166
169
  expectChecked() {
167
170
  (0, import_vitest.expect)(this.getElement(), this.msgForExpect()).toBeChecked();
168
171
  }
package/dist/index.mjs CHANGED
@@ -83,6 +83,9 @@ var AbstractComponentTesting = class _AbstractComponentTesting {
83
83
  expectReadOnly() {
84
84
  expect(this.getElement()).toHaveAttribute("readOnly", "true");
85
85
  }
86
+ expectNotReadOnly() {
87
+ expect(this.getElement()).not.toHaveAttribute("readOnly");
88
+ }
86
89
  expectChecked() {
87
90
  expect(this.getElement(), this.msgForExpect()).toBeChecked();
88
91
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebertjendustries/cstestwrapper",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",