Skip to content

Commit

Permalink
adds a test for click_button with coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
hubandr committed Dec 28, 2023
1 parent fb42f9f commit 0618985
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/local/click_button.t
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ subtest 'multiple button selectors' => sub {
'Dies when multiple button selectors are used';
};

subtest 'click with coordinates' => sub {
$mech->click_button( name => 'button_tag', x => 10, y => 5 );
test_click( $mech, 'button_tag', 'Walk' );
};

sub test_click {
my $mech = shift;
my $name = shift || 'submit';
Expand Down

0 comments on commit 0618985

Please sign in to comment.