Skip to content
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

Merged

Conversation

ked4ma
Copy link
Contributor

@ked4ma ked4ma commented Aug 11, 2024

Issue

Overview (Required)

  • Add TimetableScreenTest to verify changing event day.
  • For this, I added two tests switching event day (list / grid)

Links

Screenshot (Optional if screenshot test is present or unrelated to UI)

Before After
NotExist
NotExist

@ked4ma ked4ma changed the title Verify changing tab on Timetable screen [WIP] Verify changing tab on Timetable screen Aug 11, 2024
@@ -92,13 +93,20 @@ class TimetableScreenRobot @Inject constructor(
assert(clickedItems.isNotEmpty())
}

fun checkTimetableItemsDisplayed() {
fun checkTimetableListItemsDisplayed() {
Copy link
Contributor Author

@ked4ma ked4ma Aug 11, 2024

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 🙏

@github-actions github-actions bot temporarily deployed to deploygate-distribution August 11, 2024 13:14 Inactive
@@ -51,7 +53,9 @@ fun TimetableDayTab(
tabs = {
DroidKaigi2024Day.visibleDays().forEach { conferenceDay ->
Tab(
modifier = Modifier.height(64.dp),
modifier = Modifier
.testTag(TimetableTabTestTag.plus(conferenceDay.dayIndex))
Copy link
Contributor Author

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)
Copy link
Contributor Author

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.

@ked4ma ked4ma changed the title [WIP] Verify changing tab on Timetable screen Verify changing tab on Timetable screen Aug 11, 2024
@ked4ma ked4ma marked this pull request as ready for review August 11, 2024 13:27
Copy link
Member

@takahirom takahirom left a 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!

@takahirom takahirom merged commit 0a9d292 into DroidKaigi:main Aug 11, 2024
5 checks passed
@ked4ma ked4ma deleted the feature/add-timetable-test-screenshots-290 branch August 11, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a TimetableScreenTest to verify the display of the 9/13 tab
2 participants