Skip to content

Commit

Permalink
Merge pull request #499 from droberts-ctrlo/test-changes
Browse files Browse the repository at this point in the history
Updated code to call edit user code correctly [B: 1745]
  • Loading branch information
abeverley authored Dec 6, 2024
2 parents 74dcfde + b406e19 commit 1fa3a0a
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 1fa3a0a

Please sign in to comment.