package Ġandroidx . compose . samples . cr ane . ot us Ċ Ċ import Ġandroidx . compose . samples . cr ane . home . MainActivity Ċ import Ġandroidx . compose . samples . cr ane . home . Main Screen Ċ import Ġandroidx . compose . ui . test . assertIs Displayed Ċ import Ġandroidx . compose . ui . test . has Text Ċ import Ġandroidx . compose . ui . test . junit 4 . create Android Compose Rule Ċ import Ġandroidx . compose . ui . test . on Node With Text Ċ import Ġandroidx . compose . ui . test . perform Click Ċ import Ġdagger . h ilt . android . testing . H ilt Android Rule Ċ import Ġdagger . h ilt . android . testing . H ilt Android Test Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . Test Ċ Ċ @ H ilt Android Test Ċ class ĠE at Test Ġ{ ĊĠĠĠ Ġ@ get : Rule ( order Ġ= Ġ 0 ) ĊĠĠĠ Ġvar Ġh ilt Rule Ġ= ĠH ilt Android Rule ( this ) ĊĊĠĠĠ Ġ@ get : Rule ( order Ġ= Ġ 1 ) ĊĠĠĠ Ġval Ġcompose Test Rule Ġ= Ġcreate Android Compose Rule < MainActivity >() ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġeat Test () Ġ{ ĊĠĠĠĠĠĠĠ Ġcompose Test Rule . setContent Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMain Screen ({ Ġ}, Ġ{ Ġ}) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġcompose Test Rule . on Node ( has Text (" E AT ")). perform Click () ĊĠĠĠĠĠĠĠ Ġcompose Test Rule . on Node ( has Text (" 1 ĠAd ult ")). perform Click () ĊĠĠĠĠĠĠĠ Ġcompose Test Rule . on Node ( has Text (" 2 ĠAd ult s ")). assertIs Displayed (). perform Click () ĊĠĠĠĠĠĠĠ Ġcompose Test Rule . on Node ( has Text (" 3 ĠAd ult s ")). assertIs Displayed () ĊĠĠĠĠĠĠĠ Ġcompose Test Rule . on Node With Text (" N ap les , ĠIt aly ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. assertIs Displayed (). perform Click () ĊĠĠĠĠĠĠĠ Ġcompose Test Rule . on Node With Text (" N ap les , ĠIt aly "). assertIs Displayed () ĊĠĠĠ Ġ} Ċ } Ċ