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

feature(init): init

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