package Ġnet . l ach lan m ck ee . bookmark . testing Ċ Ċ import Ġandroidx . compose . ui . test .* Ċ import Ġandroidx . compose . ui . test . junit 4 . create Empty Compose Rule Ċ import Ġandroidx . test . ext . junit . rules . Activity Scenario Rule Ċ import Ġdagger . h ilt . android . testing . H ilt Android Rule Ċ import Ġdagger . h ilt . android . testing . H ilt Android Test Ċ import Ġnet . l ach lan m ck ee . bookmark . MainActivity Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . Test Ċ Ċ @ H ilt Android Test Ċ class ĠMainActivity Test Ġ{ ĊĠ Ġ@ get : Rule ĊĠ Ġval Ġh ilt Rule Ġ= ĠH ilt Android Rule ( this ) ĊĊĠ Ġ@ get : Rule ĊĠ Ġval Ġactivity Rule Ġ= ĠActivity Scenario Rule ( MainActivity :: class . java ) ĊĊĠ Ġ@ get : Rule ĊĠ Ġval Ġcompose Rule Ġ= Ġcreate Empty Compose Rule () ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġverify Navigation () Ġ{ ĊĠĠĠ Ġactivity Rule . scenario ĊĊĠĠĠ Ġwith ( compose Rule ) Ġ{ ĊĠĠĠĠĠ Ġ// ĠHome ĊĠĠĠĠĠ Ġon Node With Text (" Book marks "). assertIs Displayed () ĊĠĠĠĠĠ Ġon Node With Tag (" Search Ġnavigation "). perform Click () ĊĊĠĠĠĠĠ Ġ// ĠSearch ĊĠĠĠĠĠ Ġon Node With Text (" Bookmark ĠSearch "). assertIs Displayed () ĊĠĠĠĠĠ Ġon Node With Tag (" Search Text "). perform I me Action () Ġ// ĠClose Ġthe Ġkeyboard ĊĠĠĠĠĠ Ġon Node With Tag (" Settings Ġnavigation "). perform Click () ĊĊĠĠĠĠĠ Ġ// ĠSettings ĊĠĠĠĠĠ Ġon Node With Text (" Settings "). assertIs Displayed () ĊĠĠĠĠĠ Ġon Node With Tag (" Home Ġnavigation "). perform Click () ĊĊĠĠĠĠĠ Ġ// ĠHome ĊĠĠĠĠĠ Ġon Node With Text (" Book marks "). assertIs Displayed () ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ