Skip to content
Snippets Groups Projects
Commit 74ce74fe authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

feature(init): init

parent 7cdd82c4
Branches
Tags
1 merge request!1feature(init): init
Pipeline #242909 passed with warnings
...@@ -4,14 +4,15 @@ declare(strict_types=1); ...@@ -4,14 +4,15 @@ declare(strict_types=1);
namespace Octolize\Shopify\Codeception; namespace Octolize\Shopify\Codeception;
use Codeception\Module\WebDriver;
use Exception; use Exception;
class Shopify extends \Codeception\Module class Shopify extends WebDriver
{ {
public function loginAsAdmin() public function loginAsAdmin()
{ {
$i = $this->getModule('WebDriver'); $i = $this;
$isPl = false; $isPl = false;
if ($i->loadSessionSnapshot('admin')) { if ($i->loadSessionSnapshot('admin')) {
return; return;
...@@ -58,6 +59,7 @@ class Shopify extends \Codeception\Module ...@@ -58,6 +59,7 @@ class Shopify extends \Codeception\Module
} }
} }
} }
$i->wait(rand(1, 5));
$i->saveSessionSnapshot('admin'); $i->saveSessionSnapshot('admin');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment