mirror of
https://github.com/makecindy/cindy.git
synced 2026-12-02 08:39:52 +08:00
* feat(mobile): 移除自动化管理和例行任务入口 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * feat(mobile): 移除伙伴资料中的例行任务管理 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(mobile): 清理废弃自动化文案并兼容旧链接 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * docs: 对齐例行任务的手机端范围 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * docs(mobile): 从现行计划和验收范围移除自动化管理 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> --------- Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
93 lines
2.3 KiB
JavaScript
93 lines
2.3 KiB
JavaScript
const iosSyncBannerMask = { left: 235, top: 440, width: 520, height: 100 };
|
|
|
|
const profiles = {
|
|
'ios-iphone-17-pro-native': {
|
|
platform: 'ios',
|
|
appId: 'com.xd.cindy',
|
|
visualProfile: 'ios-iphone-17-pro-native',
|
|
visualIgnoreTopPx: 120,
|
|
},
|
|
'ios-iphone-17-pro-expo-go': {
|
|
platform: 'ios',
|
|
appId: 'host.exp.Exponent',
|
|
expoUrl: 'exp://localhost:8081/--/devices',
|
|
visualProfile: 'ios-iphone-17-pro-expo-go',
|
|
visualIgnoreTopPx: 120,
|
|
visualPixelTolerance: 8,
|
|
visualMasks: {
|
|
'visual-devices': [
|
|
{ left: 90, top: 440, width: 390, height: 100 },
|
|
],
|
|
'visual-device-detail': [
|
|
iosSyncBannerMask,
|
|
],
|
|
'visual-device-detail-filters': [
|
|
iosSyncBannerMask,
|
|
],
|
|
'visual-device-detail-automation-group': [
|
|
iosSyncBannerMask,
|
|
],
|
|
'visual-device-detail-selection': [
|
|
iosSyncBannerMask,
|
|
],
|
|
'visual-session': [
|
|
iosSyncBannerMask,
|
|
],
|
|
'visual-session-controls': [
|
|
iosSyncBannerMask,
|
|
],
|
|
'visual-session-controls-session': [
|
|
iosSyncBannerMask,
|
|
],
|
|
'visual-session-controls-usage': [
|
|
iosSyncBannerMask,
|
|
],
|
|
'visual-session-idle': [
|
|
iosSyncBannerMask,
|
|
],
|
|
'visual-session-running': [
|
|
iosSyncBannerMask,
|
|
],
|
|
'visual-session-pending': [
|
|
iosSyncBannerMask,
|
|
],
|
|
'visual-session-permission': [
|
|
iosSyncBannerMask,
|
|
],
|
|
'visual-session-ask': [
|
|
iosSyncBannerMask,
|
|
],
|
|
'visual-session-queue': [
|
|
iosSyncBannerMask,
|
|
],
|
|
'visual-files': [
|
|
iosSyncBannerMask,
|
|
],
|
|
'visual-files-preview': [
|
|
iosSyncBannerMask,
|
|
],
|
|
},
|
|
},
|
|
'android-pixel-expo-go': {
|
|
platform: 'android',
|
|
appId: 'host.exp.exponent',
|
|
expoUrl: 'exp://10.0.2.2:8081/--/devices',
|
|
visualProfile: 'android-pixel-expo-go',
|
|
visualIgnoreTopPx: 0,
|
|
},
|
|
};
|
|
|
|
export function resolveMobileE2eProfile(name, options = {}) {
|
|
if (!name) return null;
|
|
const profile = profiles[name];
|
|
if (!profile && options.allowUnknown) return null;
|
|
if (!profile) {
|
|
throw new Error(`Unknown mobile E2E profile: ${name}. Known profiles: ${Object.keys(profiles).join(', ')}`);
|
|
}
|
|
return { name, ...profile };
|
|
}
|
|
|
|
export function knownMobileE2eProfiles() {
|
|
return Object.keys(profiles);
|
|
}
|