From d5326e799daff9e3c910e9249b5215c4caaa0d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Miguel=20Rubio?= Date: Thu, 20 Jun 2024 13:56:50 +0200 Subject: [PATCH] fix cell table test (#3694) Signed-off-by: andresmr --- .../androidTest/java/org/dhis2/composetable/CellTableTest.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compose-table/src/androidTest/java/org/dhis2/composetable/CellTableTest.kt b/compose-table/src/androidTest/java/org/dhis2/composetable/CellTableTest.kt index ecd24f51e2..24555222c3 100644 --- a/compose-table/src/androidTest/java/org/dhis2/composetable/CellTableTest.kt +++ b/compose-table/src/androidTest/java/org/dhis2/composetable/CellTableTest.kt @@ -1,7 +1,6 @@ package org.dhis2.composetable import androidx.compose.ui.test.junit4.createAndroidComposeRule -import androidx.test.espresso.Espresso import org.dhis2.composetable.data.InputRowOption import org.dhis2.composetable.data.TableAppScreenOptions import org.dhis2.composetable.model.FakeModelType @@ -105,14 +104,14 @@ class CellTableTest { composeTestRule.waitForIdle() clickOnAccept() composeTestRule.waitForIdle() - Espresso.pressBack() assertCellSelected(firstId, 1, 0) clickOnCell(firstId, 1, 0) assertInputComponentInfo( expectedMainLabel = "Text 2", expectedSecondaryLabels = fakeModel.find { it.id == firstId }?.tableHeaderModel?.rows - ?.joinToString(separator = ",") { it.cells[0 % it.cells.size].value } ?: "" + ?.joinToString(separator = ",") { it.cells[0].value } ?: "" + ) } }