cypress-plugin-grep-boxes 1.0.3 → 1.0.5
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/.prettierrc +5 -0
- package/index.js +10 -6
- package/package.json +3 -3
package/.prettierrc
ADDED
package/index.js
CHANGED
|
@@ -306,13 +306,17 @@ if (
|
|
|
306
306
|
// if the grep test toggle is checked, do not show checkboxes on each runnable
|
|
307
307
|
window.top?.document.querySelectorAll('#grepTestToggle:checked').length === 0
|
|
308
308
|
) {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
309
|
+
// watching for changes to DOM structure
|
|
310
|
+
MutationObserver = window.MutationObserver;
|
|
311
|
+
|
|
312
|
+
var observer = new MutationObserver(function () {
|
|
313
|
+
// fired when a mutation occurs
|
|
313
314
|
addGrepButtons();
|
|
314
315
|
});
|
|
315
|
-
|
|
316
|
-
|
|
316
|
+
|
|
317
|
+
// defining the window.top?.document to be observed by the observer
|
|
318
|
+
observer.observe(window.top?.document, {
|
|
319
|
+
subtree: true,
|
|
320
|
+
attributes: true,
|
|
317
321
|
});
|
|
318
322
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cypress-plugin-grep-boxes",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Cypress plugin that allows user to run specific tests in open mode.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"cypress-plugin"
|
|
10
10
|
],
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@bahmutov/cy-grep": "^
|
|
13
|
-
"cypress": "^
|
|
12
|
+
"@bahmutov/cy-grep": "^2.0.14",
|
|
13
|
+
"cypress": "^14.0.3"
|
|
14
14
|
},
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"registry": "https://registry.npmjs.org/"
|