-
Notifications
You must be signed in to change notification settings - Fork 4
App Disguise tests #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Miki-Session
commented
May 14, 2025
- Adds tests for app disguise feature
- Visual check - do the icons match
- Set an alternate app icon (currently Android only, test tags are pending for iOS)
await sleepFor(2000); | ||
// Open app library and check for disguised app | ||
await runScriptAndLog( | ||
`${getAdbFullPath()} -s ${device.udid} shell input swipe 500 1700 500 500` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no other way than doing that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure there is I'll take another look
// The disguised app must be uninstalled otherwise every following test will fail | ||
await runScriptAndLog( | ||
`${getAdbFullPath()} -s ${device.udid} uninstall network.loki.messenger`, | ||
true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should close the app, even if that's not technically required
case 'android': | ||
return { | ||
strategy: 'accessibility id', | ||
selector: 'Appearance', | ||
} as const; | ||
case 'ios': | ||
return { | ||
strategy: 'accessibility id', | ||
selector: 'Appearance', | ||
} as const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those are the same, not a needed change, but because I am not sure you knew, you can do
case 'android':
case 'ios':
return {
strategy: 'accessibility id',
selector: 'Appearance',
} as const;```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah this is a very obvious one