Skip to content

Test: Add testTags to ui elements for better testing #52

@deepanchal

Description

@deepanchal

Description

Add testTag to app's UI elements for better testing support

Example:

CrisisCleanupFab(
    modifier = modifier
        .testTag("workIncidentSelectorFab") // <- test tag
        .constrainAs(disasterAction) {
            start.linkTo(parent.start, margin = actionEdgeSpace)
            top.linkTo(parent.top, margin = actionEdgeSpace)
        },
    onClick = onSelectIncident,
    shape = CircleShape,
    containerColor = incidentDisasterContainerColor,
    contentColor = incidentDisasterContentColor,
) {
    Icon(
        painter = painterResource(disasterResId),
        contentDescription = translator("nav.change_incident"),
    )
}

Screenshots

N/A

Steps to Reproduce

N/A

Tasks

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions