-
Notifications
You must be signed in to change notification settings - Fork 136
Fix ScreenshotTest for different locales #12979
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ import com.woocommerce.android.e2e.helpers.util.ProductData | |
| import com.woocommerce.android.e2e.helpers.util.Screen | ||
| import org.hamcrest.Matchers | ||
|
|
||
| class SingleOrderScreen : Screen(R.id.orderStatus_subtitle) { | ||
| class SingleOrderScreen : Screen(R.id.orderDetail_container) { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When the language is set to Arabic, the test cannot find
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This makes sense, I think the cause that this used to work and not anymore could be linked to the tablet support and how it changed the screen layout. Another possibility is to use |
||
| fun goBackToOrdersScreen(): OrderListScreen { | ||
| if (isElementDisplayed(R.id.orderDetail_container)) { | ||
| pressBack() | ||
|
|
||
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.
R.string.settingswas not the correct string for the button but it was working since we use the same string forsettingsandmore_menu_button_settingsfor all languages except for French.