Skip to content

Commit

Permalink
feat(commoncase): add testTag for every worksite result item based on…
Browse files Browse the repository at this point in the history
… worksite id in ExistingWorksitesList
  • Loading branch information
deepanchal committed Aug 16, 2023
1 parent f348169 commit 348e52a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.asImageBitmap
import androidx.compose.ui.platform.testTag
import com.crisiscleanup.core.common.combineTrimText
import com.crisiscleanup.core.commoncase.model.CaseSummaryResult
import com.crisiscleanup.core.designsystem.theme.listItemOptionPadding
Expand Down Expand Up @@ -63,6 +64,7 @@ fun LazyListScope.listCaseResults(
CaseView(
it,
Modifier
.testTag("workSearchResultItem_${it.listItemKey}")
.clickable(
enabled = isEditable,
onClick = { onCaseSelect(it) }
Expand Down

0 comments on commit 348e52a

Please sign in to comment.