mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
test(chrome): drive the live-page parity test through both selector forms
This commit is contained in:
1 parent
cb880edf44
commit
8a98915118
2 files changed
+92
-13
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user