Skip to content

Commit

Permalink
Add checkNavigateToBookmarkShot
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkw0127 committed Jul 17, 2023
1 parent f557aad commit 736fff7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,14 @@ class KaigiAppTest {
capture()
}
}

@Test
fun checkNavigateToBookmarkShot() {
kaigiAppRobot(robotTestRule) {
timetableScreenRobot(robotTestRule) {
clickBookmarkButton()
}
capture()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import io.github.droidkaigi.confsched2023.designsystem.theme.KaigiTheme
import io.github.droidkaigi.confsched2023.sessions.TimetableScreen
import io.github.droidkaigi.confsched2023.sessions.TimetableScreenTestTag
import io.github.droidkaigi.confsched2023.sessions.component.SearchButtonTestTag
import io.github.droidkaigi.confsched2023.sessions.component.TimetableBookmarkIconTestTag
import io.github.droidkaigi.confsched2023.sessions.component.TimetableListItemTestTag
import io.github.droidkaigi.confsched2023.sessions.component.TimetableUiTypeChangeButtonTestTag
import io.github.droidkaigi.confsched2023.testing.RobotTestRule
Expand Down Expand Up @@ -74,6 +75,12 @@ class TimetableScreenRobot @Inject constructor(
.performClick()
}

fun clickBookmarkButton() {
composeTestRule
.onNode(hasTestTag(TimetableBookmarkIconTestTag))
.performClick()
}

fun scrollTimetable() {
composeTestRule
.onNode(hasTestTag(TimetableScreenTestTag))
Expand Down

0 comments on commit 736fff7

Please sign in to comment.