@thinkwise/testwise 0.2.99 → 0.2.105
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thinkwise/testwise",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.105",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"description": "",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@thinkwise/backups": "^1.0.
|
|
25
|
+
"@thinkwise/backups": "^1.0.19",
|
|
26
26
|
"axios": "^1.9.0",
|
|
27
27
|
"chalk": "^5.4.1",
|
|
28
28
|
"change-case": "^5.4.4",
|
|
@@ -71,26 +71,8 @@ export class FillOverride {
|
|
|
71
71
|
locator.fill = async (value, options) => {
|
|
72
72
|
if (waitForRequestsToComplete) await this.flightTracker.waitToContinue();
|
|
73
73
|
|
|
74
|
-
const [valueIsDifferent, isQualifyingFormField] = await Promise.all([
|
|
75
|
-
locator.inputValue().then((v) => v !== value),
|
|
76
|
-
locator.evaluate((el) => {
|
|
77
|
-
const testId = el.getAttribute('data-testid');
|
|
78
|
-
return (
|
|
79
|
-
!!testId && testId.includes('form-field__') && el.closest('[data-testid^="form-section__"]') !== null
|
|
80
|
-
);
|
|
81
|
-
})
|
|
82
|
-
]);
|
|
83
|
-
|
|
84
74
|
await page.waitEventHandler.waitForCanContinue();
|
|
85
|
-
|
|
86
75
|
await originalFill(value, options);
|
|
87
|
-
|
|
88
|
-
if (isQualifyingFormField) {
|
|
89
|
-
if (valueIsDifferent) page.waitEventHandler.waitForResponse('/staged');
|
|
90
|
-
await locator.evaluate((el) => {
|
|
91
|
-
if (!el.getAttribute('aria-expanded')) el.blur();
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
76
|
};
|
|
95
77
|
|
|
96
78
|
for (const method of locatorMethods) {
|