Closed takahirom closed 1 week ago
🙋
Thanks! Assigned 👍
@takahirom I'm looking at the code and it is currently using LargeTopAppBar and it has 28dp embedded internally. Should I create a new topbar?
I'm not sure, but can we use medium? https://developer.android.com/develop/ui/compose/components/app-bars#medium
@takahirom thank you
@takahirom I dont 'know why test fail....
Thank you for letting me know! Don't worry. First, I think you can remove the unused import.
https://github.com/DroidKaigi/conference-app-2024/actions/runs/10633335229/job/29479517095?pr=753
e: file:///home/runner/work/conference-app-2024/conference-app-2024/feature/contributors/src/commonMain/kotlin/io/github/droidkaigi/confsched/contributors/ContributorsScreen.kt:29:52 Unresolved reference 'handleOnClickIfNotNavigating'.
Second, you can open SponsorsScreenTest and click Run the test!
And then the supporters are not displayed.
SponsorsScreenTest > runTest[SponsorsScreen - when server is operational - when launch - when scroll to supporters header - it should display supporters sponsors] STARTED
SponsorsScreenTest > runTest[SponsorsScreen - when server is operational - when launch - when scroll to supporters header - it should display supporters sponsors] FAILED
java.lang.AssertionError: Assert failed: The component is not displayed!
at androidx.compose.ui.test.AssertionsKt.assertIsDisplayed(Assertions.kt:34)
at io.github.droidkaigi.confsched.testing.robot.SponsorsScreenRobot.checkSponsorItemsDisplayedByRangeAndSponsorType(SponsorsScreenRobot.kt:100)
at io.github.droidkaigi.confsched.testing.robot.SponsorsScreenRobot.checkDisplaySupportersSponsors(SponsorsScreenRobot.kt:85)
at io.github.droidkaigi.confsched.sponsors.SponsorsScreenTest$Companion$behaviors$1$1$2$4$2.invokeSuspend$lambda$0(SponsorsScreenTest.kt:75)
at io.github.droidkaigi.confsched.testing.robot.DefaultCaptureScreenRobot.captureScreenWithChecks(MiniRobots.kt:106)
at io.github.droidkaigi.confsched.testing.robot.DefaultScreenRobot.captureScreenWithChecks(MiniRobots.kt)
How about adding this to SponsorsScreenRobot and use it? Could you take a look?
fun scrollToBottom() {
composeTestRule
.onNode(hasTestTag(SponsorsListLazyVerticalGridTestTag))
.performScrollToNode(
hasTestTag(SponsorsListSponsorItemTestTagPrefix.plus(Sponsor.fakes().last().name)),
)
}
@takahirom Thank you for your help. i fix it.
https://www.figma.com/design/XUk8WMbKCeIdWD5cz9P9JC/DroidKaigi-2024-App-UI?node-id=54795-26746