package com.example.citrusclient; import static androidx.compose.ui.semantics.SemanticsPropertiesKt.onClick; import static androidx.test.espresso.Espresso.onView; import static androidx.test.espresso.action.ViewActions.click; import static androidx.test.espresso.matcher.ViewMatchers.withId; import androidx.test.ext.junit.runners.AndroidJUnit4; import androidx.test.core.app.ActivityScenario; import com.example.citrusclient.views.TestActivity; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; @RunWith(AndroidJUnit4.class) public class CalendarTest { @Test public void testCalendar(){ try(ActivityScenario<TestActivity> scenario = ActivityScenario.launch(TestActivity.class)){ onView(withId(R.id.otherRbBoth)).perform(click()); System.out.println("helel"); } } }