-
Notifications
You must be signed in to change notification settings - Fork 4
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
ALS-1889 Map language support added and political view updated #97
base: ALS-1889_map_language_and_political_view_update
Are you sure you want to change the base?
ALS-1889 Map language support added and political view updated #97
Conversation
ALS-1885
…he dropdown ALS-1903
…he dropdown ALS-1903
ALS-1889
…on screen bug fix ALS-1905
… strings ALS-1889
ALS-1889
… and hybrid and satellite map style
…ulation and map style
countryName = context.getString(R.string.label_vnm), | ||
description = context.getString(R.string.description_vnm), | ||
countryCode = context.getString(R.string.flag_vnm), | ||
fun setPoliticalListData(context: Context) { |
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.
This code looks like it's duplicated between ExploreView and MapStyleView, can it be shared between them?
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.
Optimized
Thread.sleep(DELAY_2000) | ||
} | ||
uiDevice.findObject(By.text(WHILE_USING_THE_APP))?.click() | ||
uiDevice.findObject(By.text(WHILE_USING_THE_APP_CAPS))?.click() | ||
uiDevice.findObject(By.text(WHILE_USING_THE_APP_ALLOW))?.click() | ||
uiDevice.findObject(By.text(ALLOW))?.click() | ||
Thread.sleep(DELAY_2000) | ||
enableGPS(ApplicationProvider.getApplicationContext()) | ||
Thread.sleep(DELAY_2000) | ||
uiDevice.wait(Until.hasObject(By.desc(AMAZON_MAP_READY)), DELAY_15000) | ||
|
||
Thread.sleep(DELAY_2000) | ||
|
||
goToMapStyles() | ||
|
||
val clMapLanguage = | ||
onView(withId(R.id.cl_map_language)).check(matches(isDisplayed())) | ||
clMapLanguage.perform(click()) | ||
|
||
Thread.sleep(DELAY_2000) | ||
|
||
val language = | ||
waitForView(allOf(withText(TEST_WORD_LANGUAGE_AR), isDisplayed())) | ||
language?.perform(click()) | ||
|
||
Thread.sleep(DELAY_2000) |
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.
Are these 2 second sleeps the only way we can verify it is safe to move to the next step, or is there event-based mechanism?
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.