Skip to content

Commit

Permalink
Attempt selector fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitri Perunov committed Mar 11, 2020
1 parent a931080 commit d4af85a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Behat/Page/Admin/CreditMemoDetailsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ public function getNumber(): string

public function getChannelName(): string
{
return $this->getDocument()->find('css', '#credit-memo-channel-name')->getText();
$items = $this->getDocument()->findAll('css', '.channel > .channel__item');

return $items[1]->getText();
}

public function getTotal(): string
Expand Down

0 comments on commit d4af85a

Please sign in to comment.