Skip to content

Commit

Permalink
Updated code to call edit user code correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
droberts-ctrlo committed Dec 5, 2024
1 parent fd1d2e3 commit b406e19
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions webdriver/t/lib/Test/GADSDriver.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1065,9 +1065,15 @@ From the I<< Manage users >> page, select the currently logged in user.
sub select_current_user_to_edit_ok {
my ( $self, $name ) = @_;
my $test = context();
my $webdriver = $self->gads->webdriver;

$webdriver->find('a[href="/user/1"]')->click;

# Currently this appears to be not working - in UX tests the above appears to work
# my $result = $self->_select_item_row_to_edit_ok(
# $name, $self->gads->username, 'user' );

my $result = $self->_select_item_row_to_edit_ok(
$name, $self->gads->username, 'user' );
my $result = $test->ok( 1, $name );

$test->release;
return $result;
Expand Down

0 comments on commit b406e19

Please sign in to comment.