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
added test for Mobile Pins #2593
base: master
Are you sure you want to change the base?
Conversation
@damagatchi retest this please |
@kbo001 Looks like this test is failing currently on BS |
@BrowserstackTests | ||
class MobilePinTests : BaseTest() { | ||
companion object { | ||
const val CCZ_NAME_1 = "basic_tests_latest.ccz" |
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.
can we name these varialbles for what they are like BASIC_TESTS_CCZ_NAME
, BASIC_TESTS_APP_NAME
and so on..
|
||
@Before | ||
fun setup() { | ||
if (CommCareApplication.instance().currentApp == null) { |
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.
why not use installApp
directly like other instrumentation tests ?
onView(withText("Developer Options")) | ||
.perform(click()) | ||
InstrumentationUtility.openOptionsMenu() | ||
onView(withText("Mobile Privileges")) |
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.
since this is not actually going to grant any priviliges, would not steps below fail to enable pin option ?
Summary
Added MobilePinTests.kt and 2 corresponding .ccz files that cover testcases in the Mobile Pins tab of the Mobile Test Plan:
https://docs.google.com/spreadsheets/d/1X9YAf_g1Cq9vZZdCkcBLnRSFrhZuk_vEyCSM3sD5QvM/edit#gid=1556040007
Feature Flag
Product Description
Safety Assurance
Automated test coverage
MobilePinTests.kt covers tests for:
Safety story
Executed in local AVD as well as physical device, ran successfully.