@testspectra/reporter 1.1.14 → 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 CHANGED
@@ -145,6 +145,24 @@ 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}'}"`;
162
+ case 'focus':
163
+ return `Focus ${el}`;
164
+ case 'blur':
165
+ return `Blur ${el}`;
148
166
  case 'dragDrop': {
149
167
  const dest = args.dest || args.destination ? formatElementTarget(args.dest || args.destination) : 'element {dest}';
150
168
  return `Drag ${el} and drop onto ${dest}`;
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type ActionKey = 'click' | 'doubleClick' | 'rightClick' | 'type' | 'clear' | 'select' | 'selectOption' | 'hover' | '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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testspectra/reporter",
3
- "version": "1.1.14",
3
+ "version": "1.2.1",
4
4
  "description": "Canonical semantic reporter, output stream parser, and execution telemetry for TestSpectra",
5
5
  "files": [
6
6
  "dist",