Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

test(mobile): include edge-back regression in iOS full suite

Chrisa15782786b3f
diff --git a/apps/mobile/scripts/local-device-link-smoke.mjs b/apps/mobile/scripts/local-device-link-smoke.mjs
index 1c5a7b3786..c4c9b9196e 100644
--- a/apps/mobile/scripts/local-device-link-smoke.mjs
+++ b/apps/mobile/scripts/local-device-link-smoke.mjs
@@ -75,6 +75,7 @@ const flows = resolveFlows({
flow: options.flow ?? process.env.XDT_MOBILE_E2E_FLOW,
appId,
flowSuite,
+ platform,
});
const configuredMockHostScenario = options.mockHostScenario
?? process.env.XDT_MOBILE_E2E_MOCK_SCENARIO;
@@ -980,7 +981,7 @@ function parseArgs(args) {
return parsed;
}
-function resolveFlows({ appId, flow, flowSuite }) {
+function resolveFlows({ appId, flow, flowSuite, platform }) {
if (flow) return [flow];
if (!flowSuite) return [defaultFlow];
if (flowSuite === 'default') return [defaultFlow];
@@ -1024,6 +1025,7 @@ function resolveFlows({ appId, flow, flowSuite }) {
'file_browser.yaml',
'fork_rewind.yaml',
'message_selection.yaml',
+ ...(platform === 'ios' ? ['session_back_gesture.yaml'] : []),
'settings.yaml',
];
}
diff --git a/apps/mobile/scripts/maestro-flow-smoke.mjs b/apps/mobile/scripts/maestro-flow-smoke.mjs
index 9ec5294705..45a2cc0f0f 100644
--- a/apps/mobile/scripts/maestro-flow-smoke.mjs
+++ b/apps/mobile/scripts/maestro-flow-smoke.mjs
@@ -23,6 +23,7 @@ const requiredFlows = [
'plan_review.yaml',
'fork_rewind.yaml',
'message_selection.yaml',
+ 'session_back_gesture.yaml',
'fixture_controls_smoke.yaml',
'file_preview.yaml',
'file_browser.yaml',