test(chrome): drive the live-page parity test through both selector forms

This commit is contained in:
pj committed 2026-08-13 00:41:23 +05:30
1 parent cb880edf44
commit 8a98915118
2 files changed
+92 -13

No files matched your search

+2 -2
View File
@@ -21,13 +21,13 @@ interface Ax {
findAll(selector: unknown): Handle[];
}
function selectorMatches(selector: string): string[] {
function selectorMatches(selector: unknown): string[] {
const ax = buildAx() as Ax;
return ax.findAll(selector).map((element) => element.id ?? "");
}
type SelectorGlobal = {
__sanderlingSelectorMatches__: (selector: string) => string[];
__sanderlingSelectorMatches__: (selector: unknown) => string[];
};
(globalThis as unknown as SelectorGlobal).__sanderlingSelectorMatches__ = selectorMatches;