Skip to content
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

Open
wants to merge 29 commits into
base: ALS-1889_map_language_and_political_view_update
Choose a base branch
from

Conversation

shah279
Copy link
Collaborator

@shah279 shah279 commented Dec 12, 2024

Issue #, if available:

Description of changes:

  • Add language support to Map
  • Political view design update and remove VNM from listing
  • Add political views for Georgia, Cyprus, Palestine, and Greece to the dropdown
  • Bug fixes and code optimization

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@shah279 shah279 marked this pull request as ready for review December 16, 2024 14:01
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) {
Copy link
Contributor

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optimized

Comment on lines +46 to +71
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)
Copy link
Contributor

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?

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

Successfully merging this pull request may close these issues.

5 participants