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

feature(init): init

parent 6b1bfbbf
Branches
Tags 1.0.0-beta6
1 merge request!1feature(init): init
Pipeline #243077 passed with warnings
...@@ -5,6 +5,7 @@ declare(strict_types=1); ...@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace Octolize\Shopify\Codeception; namespace Octolize\Shopify\Codeception;
use Codeception\Module\WebDriver; use Codeception\Module\WebDriver;
use Codeception\Util\Locator;
use Exception; use Exception;
class Shopify extends WebDriver class Shopify extends WebDriver
...@@ -17,7 +18,7 @@ class Shopify extends WebDriver ...@@ -17,7 +18,7 @@ class Shopify extends WebDriver
if ($i->loadSessionSnapshot('admin')) { if ($i->loadSessionSnapshot('admin')) {
return; return;
} }
$i->amOnUrl('https://accounts.shopify.com/lookup'); $i->amOnUrl($this->config['admin_url']);
try { try {
$i->moveMouseOver('body', rand(1, 100), rand(1, 100)); $i->moveMouseOver('body', rand(1, 100), rand(1, 100));
$i->seeInCurrentUrl(parse_url($this->config['admin_url'], PHP_URL_PATH)); $i->seeInCurrentUrl(parse_url($this->config['admin_url'], PHP_URL_PATH));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment