Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

App Disguise tests #44

wants to merge 2 commits into from

Conversation

Miki-Session
Copy link
Collaborator

  • 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`
Copy link
Collaborator

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?

Copy link
Collaborator Author

@Miki-Session Miki-Session May 15, 2025

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

Comment on lines +45 to +48
// The disguised app must be uninstalled otherwise every following test will fail
await runScriptAndLog(
`${getAdbFullPath()} -s ${device.udid} uninstall network.loki.messenger`,
true
Copy link
Collaborator

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

Comment on lines +111 to +120
case 'android':
return {
strategy: 'accessibility id',
selector: 'Appearance',
} as const;
case 'ios':
return {
strategy: 'accessibility id',
selector: 'Appearance',
} as const;
Copy link
Collaborator

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;```

Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants