-
Notifications
You must be signed in to change notification settings - Fork 199
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
Verify changing tab on Timetable screen #305
Verify changing tab on Timetable screen #305
Conversation
@@ -92,13 +93,20 @@ class TimetableScreenRobot @Inject constructor( | |||
assert(clickedItems.isNotEmpty()) | |||
} | |||
|
|||
fun checkTimetableItemsDisplayed() { | |||
fun checkTimetableListItemsDisplayed() { |
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.
I changed func name to distinguish with Grid one 🙏
@@ -51,7 +53,9 @@ fun TimetableDayTab( | |||
tabs = { | |||
DroidKaigi2024Day.visibleDays().forEach { conferenceDay -> | |||
Tab( | |||
modifier = Modifier.height(64.dp), | |||
modifier = Modifier | |||
.testTag(TimetableTabTestTag.plus(conferenceDay.dayIndex)) |
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.
To switch tab, add testTag to each tab with dayIndex.
(clickTimetableTab
was already exist, so I adjusted enabling to use it)
@@ -100,6 +101,7 @@ fun TimetableGridItem( | |||
} | |||
Column( | |||
modifier = modifier | |||
.testTag(TimetableGridItemTestTag) |
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.
to check verify table item is displayed, added test tag to grid items.
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.
Looks super great! Thank you for creating ideal tests!
Issue
Overview (Required)
Links
Screenshot (Optional if screenshot test is present or unrelated to UI)