@rickcedwhat/playwright-smart-table 6.24.0 → 6.25.0-next.3dfcc94
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/engine/rowFinder.d.ts +2 -0
- package/dist/engine/rowFinder.js +13 -4
- package/dist/engine/tableIteration.js +2 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/presets/glide/index.js +0 -1
- package/dist/presets/rdg.js +0 -2
- package/dist/smartRow.js +39 -29
- package/dist/strategies/contentReady.d.ts +0 -1
- package/dist/strategies/index.d.ts +2 -3
- package/dist/strategies/resolution.d.ts +1 -3
- package/dist/strategies/resolution.js +0 -28
- package/dist/types.d.ts +12 -2
- package/dist/useTable.js +10 -2
- package/dist/utils/locatorDescription.d.ts +15 -0
- package/dist/utils/locatorDescription.js +56 -0
- package/dist/utils/navigationBarrier.d.ts +0 -2
- package/dist/utils/navigationBarrier.js +1 -4
- package/package.json +5 -6
- package/dist/typeContext.d.ts +0 -6
- package/dist/typeContext.js +0 -1133
- package/dist/utils.d.ts +0 -7
- package/dist/utils.js +0 -21
package/dist/utils.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Page } from '@playwright/test';
|
|
2
|
-
/**
|
|
3
|
-
* Internal helper to wait for a condition to be met.
|
|
4
|
-
* Replaces the dependency on 'expect(...).toPass()' to ensure compatibility
|
|
5
|
-
* with environments where 'expect' is not globally available.
|
|
6
|
-
*/
|
|
7
|
-
export declare const waitForCondition: (predicate: () => Promise<boolean>, timeout: number, page: Page) => Promise<boolean>;
|
package/dist/utils.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitForCondition = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Internal helper to wait for a condition to be met.
|
|
6
|
-
* Replaces the dependency on 'expect(...).toPass()' to ensure compatibility
|
|
7
|
-
* with environments where 'expect' is not globally available.
|
|
8
|
-
*/
|
|
9
|
-
// fallow-ignore-next-line unused-export
|
|
10
|
-
const waitForCondition = async (predicate, timeout, page) => {
|
|
11
|
-
const startTime = Date.now();
|
|
12
|
-
while (Date.now() - startTime < timeout) {
|
|
13
|
-
if (await predicate()) {
|
|
14
|
-
return true;
|
|
15
|
-
}
|
|
16
|
-
// Wait 100ms before next check (Standard Polling)
|
|
17
|
-
await page.waitForTimeout(100).catch(() => new Promise(r => setTimeout(r, 100)));
|
|
18
|
-
}
|
|
19
|
-
return false;
|
|
20
|
-
};
|
|
21
|
-
exports.waitForCondition = waitForCondition;
|