@testspectra/reporter 1.2.0 → 1.2.1
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/formatter.js +14 -0
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/formatter.js
CHANGED
|
@@ -145,6 +145,20 @@ export function formatAction(actionKey, target, args = {}) {
|
|
|
145
145
|
return `Select option "${args.option ?? args.value ?? args.text ?? '{option}'}" in ${el}`;
|
|
146
146
|
case 'hover':
|
|
147
147
|
return `Hover over ${el}`;
|
|
148
|
+
case 'waitForElementRemoved':
|
|
149
|
+
return `Wait for ${el} to be removed`;
|
|
150
|
+
case 'waitForUndisplayed':
|
|
151
|
+
return `Wait for ${el} to be hidden`;
|
|
152
|
+
case 'waitForClickable':
|
|
153
|
+
return `Wait for ${el} to be clickable`;
|
|
154
|
+
case 'getBounds':
|
|
155
|
+
return `Get bounds of ${el}`;
|
|
156
|
+
case 'clickAt':
|
|
157
|
+
return `Click at (${args.x ?? '{x}'}, ${args.y ?? '{y}'})`;
|
|
158
|
+
case 'parent':
|
|
159
|
+
return `Get parent of ${el}`;
|
|
160
|
+
case 'closest':
|
|
161
|
+
return `Find closest ancestor of ${el} matching "${args.selector ?? '{selector}'}"`;
|
|
148
162
|
case 'focus':
|
|
149
163
|
return `Focus ${el}`;
|
|
150
164
|
case 'blur':
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ActionKey = 'click' | 'doubleClick' | 'rightClick' | 'type' | 'clear' | 'select' | 'selectOption' | 'hover' | 'focus' | 'blur' | 'dragDrop' | 'scrollIntoView' | 'longPress' | 'waitForElement' | 'navigate' | 'back' | 'forward' | 'refresh' | 'setViewport' | 'wait' | 'pressKey' | 'scroll' | 'swipe' | 'upload' | 'intercept' | 'clearCookies' | 'setCookies' | 'clearLocalStorage' | 'mount';
|
|
1
|
+
export type ActionKey = 'click' | 'doubleClick' | 'rightClick' | 'type' | 'clear' | 'select' | 'selectOption' | 'hover' | 'focus' | 'blur' | 'dragDrop' | 'scrollIntoView' | 'longPress' | 'waitForElement' | 'waitForElementRemoved' | 'waitForUndisplayed' | 'waitForClickable' | 'getBounds' | 'clickAt' | 'parent' | 'closest' | 'navigate' | 'back' | 'forward' | 'refresh' | 'setViewport' | 'wait' | 'pressKey' | 'scroll' | 'swipe' | 'upload' | 'intercept' | 'clearCookies' | 'setCookies' | 'clearLocalStorage' | 'mount';
|
|
2
2
|
export type AssertionKey = 'be.visible' | 'not.be.visible' | 'exist' | 'not.exist' | 'be.clickable' | 'not.be.clickable' | 'be.enabled' | 'be.disabled' | 'be.checked' | 'not.be.checked' | 'be.selected' | 'not.be.selected' | 'be.focused' | 'not.be.focused' | 'have.text' | 'not.have.text' | 'contain.text' | 'not.contain.text' | 'have.value' | 'not.have.value' | 'contain.value' | 'not.contain.value' | 'have.attr' | 'not.have.attr' | 'have.class' | 'not.have.class' | 'have.css' | 'not.have.css' | 'have.length' | 'not.have.length' | 'have.length.greaterThan' | 'have.length.lessThan' | 'be.empty' | 'not.be.empty' | 'shouldHaveUrl' | 'shouldContainUrl' | 'shouldHaveTitle' | 'shouldContainTitle' | 'shouldBeLoaded' | 'shouldBePageLoaded' | 'shouldHaveNoConsoleErrors' | 'have.url' | 'contain.url' | 'have.title' | 'contain.title' | 'be.loaded' | 'be.pageLoaded' | 'have.noConsoleErrors';
|
|
3
3
|
export type TestLogLevel = 'INFO' | 'SUCCESS' | 'WARNING' | 'ERROR' | 'DEBUG';
|
|
4
4
|
export interface TestLog {
|