Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
fenix
Commits
8288739a
Commit
8288739a
authored
Feb 11, 2020
by
Severin Rudie
Committed by
Jeff Boek
Feb 11, 2020
Browse files
Fix UI test failures
parent
a701988a
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/src/androidTest/java/org/mozilla/fenix/screenshots/MenuScreenShotTest.kt
View file @
8288739a
...
...
@@ -206,7 +206,7 @@ fun settingsAccountPreferences() = onView(withText(R.string.preferences_sync)).c
fun
settingsSearch
()
=
onView
(
withText
(
R
.
string
.
preferences_search
)).
click
()
fun
settingsTheme
()
=
onView
(
withText
(
R
.
string
.
preferences_
them
e
)).
click
()
fun
settingsTheme
()
=
onView
(
withText
(
R
.
string
.
preferences_
customiz
e
)).
click
()
fun
settingsAccessibility
()
=
onView
(
withText
(
R
.
string
.
preferences_accessibility
)).
click
()
...
...
app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsRobot.kt
View file @
8288739a
...
...
@@ -36,10 +36,10 @@ import org.mozilla.fenix.helpers.click
class
SettingsRobot
{
// BASICS SECTION
fun
verifyBasicsHeading
()
=
assert
Basics
Heading
()
fun
verifyBasicsHeading
()
=
assert
General
Heading
()
fun
verifySearchEngineButton
()
=
assertSearchEngineButton
()
fun
verifyThemeButton
()
=
assert
Them
eButton
()
fun
verifyThemeButton
()
=
assert
Customiz
eButton
()
fun
verifyThemeSelected
()
=
assertThemeSelected
()
fun
verifyAccessibilityButton
()
=
assertAccessibilityButton
()
fun
verifySetAsDefaultBrowserButton
()
=
assertSetAsDefaultBrowserButton
()
...
...
@@ -159,14 +159,14 @@ class SettingsRobot {
private
fun
assertSettingsView
()
{
// verify that we are in the correct library view
assert
Basics
Heading
()
assert
General
Heading
()
assertPrivacyHeading
()
assertDeveloperToolsHeading
()
assertAboutHeading
()
}
//
BASICS
SECTION
private
fun
assert
Basics
Heading
()
=
onView
(
ViewMatchers
.
withText
(
"
Basics
"
))
//
GENERAL
SECTION
private
fun
assert
General
Heading
()
=
onView
(
ViewMatchers
.
withText
(
"
General
"
))
.
check
(
matches
(
withEffectiveVisibility
(
Visibility
.
VISIBLE
)))
private
fun
assertSearchEngineButton
()
{
...
...
@@ -175,7 +175,7 @@ private fun assertSearchEngineButton() {
.
check
(
matches
(
withEffectiveVisibility
(
Visibility
.
VISIBLE
)))
}
private
fun
assert
Them
eButton
()
=
onView
(
ViewMatchers
.
withText
(
"
Them
e"
))
private
fun
assert
Customiz
eButton
()
=
onView
(
ViewMatchers
.
withText
(
"
Customiz
e"
))
.
check
(
matches
(
withEffectiveVisibility
(
Visibility
.
VISIBLE
)))
private
fun
assertThemeSelected
()
=
onView
(
ViewMatchers
.
withText
(
"Light"
))
...
...
@@ -190,7 +190,7 @@ private fun assertSetAsDefaultBrowserButton() =
// PRIVACY SECTION
private
fun
assertPrivacyHeading
()
{
onView
(
ViewMatchers
.
withText
(
"Privacy"
))
onView
(
ViewMatchers
.
withText
(
"Privacy
and security
"
))
.
check
(
matches
(
withEffectiveVisibility
(
Visibility
.
VISIBLE
)))
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment