wick-dom-observer 1.0.0 → 1.0.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/README.md +7 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This plugin adds two Cypress commands to reliably detect UI elements that may appear/disappear quickly: `clickAndWatchForElement` (click + observe) and `watchForElement` (observe only). It supports required/optional appearance, optional disappearance checks, custom timeout/polling, and minimum visible duration (`mustLast`) with a synchronous assertion callback.
|
|
4
4
|
|
|
5
|
-

|
|
5
|
+

|
|
6
6
|
|
|
7
7
|
This is useful when, for example, a spinner may appear and disappear too quickly for a normal Cypress assertion like:
|
|
8
8
|
|
|
@@ -102,7 +102,7 @@ Do not use Cypress commands inside `assert` or `action` (e.g., `cy.wrap()`, `cy.
|
|
|
102
102
|
|
|
103
103
|
#### Timeline view
|
|
104
104
|
|
|
105
|
-

|
|
105
|
+

|
|
106
106
|
|
|
107
107
|
The timeline above maps how timeout values are consumed during the command flow:
|
|
108
108
|
|
|
@@ -470,7 +470,7 @@ The commands add Cypress log entries named `clickAndWatchForElement` or `watchFo
|
|
|
470
470
|
|
|
471
471
|
Example command log output:
|
|
472
472
|
|
|
473
|
-

|
|
473
|
+

|
|
474
474
|
|
|
475
475
|
|
|
476
476
|
## Run the package Cypress examples
|
|
@@ -517,6 +517,10 @@ Useful when you only want to validate `clickAndWatchForElement()` behavior.
|
|
|
517
517
|
|
|
518
518
|
## Changelog
|
|
519
519
|
|
|
520
|
+
### 1.0.1
|
|
521
|
+
|
|
522
|
+
- Fix paths to image assets in readme.md
|
|
523
|
+
|
|
520
524
|
### 1.0.0
|
|
521
525
|
|
|
522
526
|
- Initial release: `cy.clickAndWatchForElement()`, and `cy.watchForElement()` custom commands for Cypress.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wick-dom-observer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "A Cypress plugin that watches DOM changes after clicks to detect fast loading spinners and async UI transitions. It improves test reliability by waiting for real visual completion instead of fixed delays or intercepts.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|