Skip to content

Commit

Permalink
fix: test시에 until wait time을 1000ms 에서 10000ms 로 증가
Browse files Browse the repository at this point in the history
인터넷 이슈로 1초 이내에 응답이 없는 경우가 있어서 10초로 waiting시간의 최댓값을 늘렸습니다.
  • Loading branch information
mechanicjo committed Nov 30, 2023
1 parent fd3c6e9 commit d192fc9
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class FooriendScreenTest {
.onNodeWithTag("followingButton")
.assertIsDisplayed()
.performClick()
composeTestRule.waitUntil {
composeTestRule.waitUntil(100000) {
composeTestRule
.onAllNodesWithTag("popup")
.fetchSemanticsNodes().isNotEmpty()
Expand All @@ -53,7 +53,7 @@ class FooriendScreenTest {
.onAllNodesWithTag("userListItem")[0]
.assertIsDisplayed()
.performClick()
composeTestRule.waitUntil {
composeTestRule.waitUntil(10000) {
composeTestRule
.onAllNodesWithTag("reviewLazyGridItem")
.fetchSemanticsNodes().isNotEmpty()
Expand All @@ -75,7 +75,7 @@ class FooriendScreenTest {
composeTestRule
.onNodeWithTag("profileSection")
.assertIsDisplayed()
composeTestRule.waitUntil {
composeTestRule.waitUntil(10000) {
composeTestRule
.onAllNodesWithTag("unfollowButton")
.fetchSemanticsNodes().isNotEmpty()
Expand All @@ -87,7 +87,7 @@ class FooriendScreenTest {

@Test
fun performClick_OnUnfollowButton_OnFollowButton(){
composeTestRule.waitUntil {
composeTestRule.waitUntil(10000) {
composeTestRule
.onAllNodesWithTag("unfollowButton")
.fetchSemanticsNodes().isNotEmpty()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class LogInScreenTest {
composeTestRule
.onNodeWithText("LOGIN")
.performClick()
composeTestRule.waitUntil {
composeTestRule.waitUntil(10000) {
navController.currentBackStackEntry?.destination?.route == Graph.HOME
}
val route = navController.currentBackStackEntry?.destination?.route
Expand All @@ -122,7 +122,7 @@ class LogInScreenTest {
composeTestRule
.onNodeWithText("LOGIN")
.performClick()
composeTestRule.waitUntil {
composeTestRule.waitUntil(10000) {
navController.currentBackStackEntry?.destination?.route == Graph.HOME
}
val route = navController.currentBackStackEntry?.destination?.route
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class MyInformationScreenTest {
navController.navigatorProvider.addNavigator(ComposeNavigator())
HomeNavGraph(navController = navController, context = context, startDestination = BottomNavItem.MyPage.route)
}
composeTestRule.waitUntil {
composeTestRule.waitUntil(10000) {
composeTestRule
.onAllNodesWithTag("myInfoButton")
.fetchSemanticsNodes().size == 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class MyPageScreenTest {
.onNodeWithTag("followersButton")
.assertIsDisplayed()
.performClick()
composeTestRule.waitUntil {
composeTestRule.waitUntil(10000) {
composeTestRule
.onAllNodesWithTag("popup")
.fetchSemanticsNodes().isNotEmpty()
Expand All @@ -101,7 +101,7 @@ class MyPageScreenTest {
.onNodeWithTag("followingButton")
.assertIsDisplayed()
.performClick()
composeTestRule.waitUntil {
composeTestRule.waitUntil(10000) {
composeTestRule
.onAllNodesWithTag("popup")
.fetchSemanticsNodes().isNotEmpty()
Expand All @@ -117,7 +117,7 @@ class MyPageScreenTest {
.onNodeWithTag("followersButton")
.assertIsDisplayed()
.performClick()
composeTestRule.waitUntil {
composeTestRule.waitUntil(10000) {
composeTestRule
.onAllNodesWithTag("popup")
.fetchSemanticsNodes().isNotEmpty()
Expand All @@ -135,7 +135,7 @@ class MyPageScreenTest {
.onNodeWithTag("followingButton")
.assertIsDisplayed()
.performClick()
composeTestRule.waitUntil {
composeTestRule.waitUntil(10000) {
composeTestRule
.onAllNodesWithTag("popup")
.fetchSemanticsNodes().isNotEmpty()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class PostingScreenTest {
startDestination = BottomNavItem.Social.route
)
}
composeTestRule.waitUntil() {
composeTestRule.waitUntil(10000) {
composeTestRule
.onAllNodesWithTag("reviewLazyGridItem")
.fetchSemanticsNodes().isNotEmpty()
Expand All @@ -52,7 +52,7 @@ class PostingScreenTest {
.onAllNodesWithTag("reviewLazyGridItem")[0]
.assertIsDisplayed()
.performClick()
composeTestRule.waitUntil {
composeTestRule.waitUntil(10000) {
composeTestRule
.onAllNodesWithTag("reviewDetailScreen")
.fetchSemanticsNodes().isNotEmpty()
Expand All @@ -61,7 +61,7 @@ class PostingScreenTest {
.onNodeWithTag("restaurantName")
.assertIsDisplayed()
.performClick()
composeTestRule.waitUntil {
composeTestRule.waitUntil(10000) {
composeTestRule
.onAllNodesWithTag("restaurantDetailScreen")
.fetchSemanticsNodes().isNotEmpty()
Expand All @@ -72,7 +72,7 @@ class PostingScreenTest {
.performClick()
val route = navController.currentBackStackEntry?.destination?.route
Log.d("PostingScreenTest", route.toString())
composeTestRule.waitUntil {
composeTestRule.waitUntil(10000) {
composeTestRule
.onAllNodesWithTag("postingScreen")
.fetchSemanticsNodes().isNotEmpty()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class RestaurantDetailScreenTest {
navController.navigatorProvider.addNavigator(ComposeNavigator())
HomeNavGraph(navController = navController, context = context, startDestination = BottomNavItem.Social.route)
}
composeTestRule.waitUntil() {
composeTestRule.waitUntil(10000) {
composeTestRule
.onAllNodesWithTag("reviewLazyGridItem")
.fetchSemanticsNodes().isNotEmpty()
Expand All @@ -46,7 +46,7 @@ class RestaurantDetailScreenTest {
.onAllNodesWithTag("reviewLazyGridItem")[0]
.assertIsDisplayed()
.performClick()
composeTestRule.waitUntil {
composeTestRule.waitUntil(10000) {
composeTestRule
.onAllNodesWithTag("reviewDetailScreen")
.fetchSemanticsNodes().isNotEmpty()
Expand All @@ -57,7 +57,7 @@ class RestaurantDetailScreenTest {
.performClick()
val route = navController.currentBackStackEntry?.destination?.route
Log.d("RestaurantDetailScreenTest", route.toString())
composeTestRule.waitUntil {
composeTestRule.waitUntil(10000) {
composeTestRule
.onAllNodesWithTag("restaurantDetailScreen")
.fetchSemanticsNodes().isNotEmpty()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ReviewDetailScreenTest {
navController.navigatorProvider.addNavigator(ComposeNavigator())
HomeNavGraph(navController = navController, context = context, startDestination = BottomNavItem.Social.route)
}
composeTestRule.waitUntil() {
composeTestRule.waitUntil(10000) {
composeTestRule
.onAllNodesWithTag("reviewLazyGridItem")
.fetchSemanticsNodes().isNotEmpty()
Expand All @@ -44,7 +44,7 @@ class ReviewDetailScreenTest {
.performClick()
val route = navController.currentBackStackEntry?.destination?.route
Log.d("ReviewDetailScreenTest", route.toString())
composeTestRule.waitUntil {
composeTestRule.waitUntil(10000) {
composeTestRule
.onAllNodesWithTag("reviewDetailScreen")
.fetchSemanticsNodes().isNotEmpty()
Expand Down

0 comments on commit d192fc9

Please sign in to comment.