Skip to content

Commit

Permalink
fix cell table test (#3694)
Browse files Browse the repository at this point in the history
Signed-off-by: andresmr <[email protected]>
  • Loading branch information
andresmr authored Jun 20, 2024
1 parent adfda58 commit d5326e7
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 } ?: ""

)
}
}
Expand Down

0 comments on commit d5326e7

Please sign in to comment.