@swmansion/argent 0.18.1-next.20 → 0.18.1-next.21
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/tool-server.cjs +5 -0
- package/package.json +1 -1
package/dist/tool-server.cjs
CHANGED
|
@@ -148591,6 +148591,11 @@ async function queryFullHierarchyTree(registry2, device) {
|
|
|
148591
148591
|
if (rawResult.error) {
|
|
148592
148592
|
throw new Error(`getFullHierarchy failed for ${target.bundleId}: ${rawResult.error}`);
|
|
148593
148593
|
}
|
|
148594
|
+
if (!Array.isArray(rawResult.windows) || rawResult.windows.length === 0) {
|
|
148595
|
+
throw new Error(
|
|
148596
|
+
`getFullHierarchy returned no windows for ${target.bundleId} \u2014 the app is not injectable (e.g. an Apple system app) or has no readable foreground window, so flows cannot resolve selectors against its view hierarchy`
|
|
148597
|
+
);
|
|
148598
|
+
}
|
|
148594
148599
|
const { tree, screen } = adaptFullHierarchy(rawResult);
|
|
148595
148600
|
return { tree, source: "native-devtools", ...screen ? { screen } : {} };
|
|
148596
148601
|
}
|
package/package.json
CHANGED