Skip to content

Commit

Permalink
[Workaround] Setting MOCKSESSID before adding product to wishlist
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobTolkemit committed May 22, 2018
1 parent 45e192c commit 3c0f400
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Behat/Page/Shop/ProductIndexPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class ProductIndexPage extends IndexPage implements ProductIndexPageInterface
{
public function addProductToWishlist(string $productName): void
{
$this->getSession()->setCookie('MOCKSESSID', 'foo');

$wishlistElements = $this->getDocument()->findAll('css', '.bitbag-add-to-wishlist');

/** @var NodeElement $wishlistElement */
Expand Down

0 comments on commit 3c0f400

Please sign in to comment.