Updated on 2026-08-14
This commit is contained in:
parent
0365d4cafc
commit
b861d63402
11 changed files with 82 additions and 30 deletions
|
|
@ -65,8 +65,8 @@ fun BaseTestCase.openMainScreen(
|
|||
step("Assert 'Main' screen is displayed") {
|
||||
onMainScreen { screenContainer.assertIsDisplayed() }
|
||||
}
|
||||
step("Click on 'Market Tooltip' screen") {
|
||||
onMarketsTooltipScreen { contentContainer.clickWithAssertion() }
|
||||
step("Dismiss Market Tooltip by clicking close button") {
|
||||
onMarketsTooltipScreen { closeButton.clickWithAssertion() }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,10 @@ class MarketsTooltipPageObject(semanticsProvider: SemanticsNodeInteractionsProvi
|
|||
val contentContainer: KNode = child {
|
||||
hasTestTag(MarketTooltipTestTags.CONTAINER)
|
||||
}
|
||||
|
||||
val closeButton: KNode = child {
|
||||
hasTestTag(MarketTooltipTestTags.CLOSE_BUTTON)
|
||||
}
|
||||
}
|
||||
|
||||
internal fun BaseTestCase.onMarketsTooltipScreen(function: MarketsTooltipPageObject.() -> Unit) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue