use Mojo::Base -strict; use Test2::V0; use FindBin; use lib "${FindBin::Bin}/../lib/"; use lib "${FindBin::Bin}/lib/"; use Dashboard::Test qw(test_app); my $t = test_app(); $t->get_ok('/probes/status') ->status_is(200) ->element_exists('main.container') ->element_exists('.list-group'); for my $item (qw(hub ph do orp ec)) { $t->element_exists( qq{[data-status-page-item="$item"] [data-status-page-state]}); } for my $probe (qw(ph do orp ec)) { $t->element_exists( qq{[data-status-page-item="$probe"] h2 a[href="/probes/$probe"]}); } $t->element_exists_not('[data-status-page-item="hub"] h2 a'); done_testing;