Skip to content

Conversation

@Williamrai
Copy link
Collaborator

What does this do?

  • Updates Espresso to align with recent changes
  • Integrates Espresso tests into GitHub Actions
  • Fixes failing Espresso tests

Phabricator:
https://phabricator.wikimedia.org/T378649

@Williamrai Williamrai added the WIP Work in progress label Nov 25, 2025
Comment on lines +229 to +246
fun isItemPresent(
recyclerViewId: Int = R.id.feed_view,
title: String,
textViewId: Int = R.id.view_card_header_title
): Boolean {
return try {
onView(withId(recyclerViewId))
.check(matches(hasDescendant(allOf(
withId(textViewId),
withText(title)
))))
true
} catch (_: NoMatchingViewException) {
false
} catch (_: AssertionFailedError) {
false
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this was used before but its not used now, there are lot of functions which are not used or i added for testing. I will remove them and refactor more after i finish fixing the tests.

})
}

private fun verifyItemAtPosition(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same for this, is this still being used? and also this findItemPosition

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this was used before but its not used now, there are lot of functions which are not used or i added for testing. I will remove them and refactor more after i finish fixing the tests.

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

Labels

WIP Work in progress

Development

Successfully merging this pull request may close these issues.

2 participants