Skip to content

Commit f35109b

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-62975' into BUGS
2 parents 424d424 + 8e2a944 commit f35109b

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/RegisterCustomerFrontendEntityTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ class RegisterCustomerFrontendEntityTest extends Injectable
5757
* @param CustomerAccountCreate $customerAccountCreate
5858
* @param CmsIndex $cmsIndex
5959
* @param LogoutCustomerOnFrontendStep $logoutCustomerOnFrontendStep
60-
* @return void
6160
*/
6261
public function __inject(
6362
CustomerAccountCreate $customerAccountCreate,
@@ -77,9 +76,10 @@ public function __inject(
7776
*/
7877
public function test(Customer $customer)
7978
{
79+
$this->logoutCustomerOnFrontendStep->run();
8080
// Steps
8181
$this->cmsIndex->open();
82-
$this->cmsIndex->getLinksBlock()->openLink('Create an Account');
82+
$this->cmsIndex->getLinksBlock()->openCustomerCreateLink();
8383
$this->customerAccountCreate->getRegisterForm()->registerCustomer($customer);
8484
}
8585

dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/RegisterCustomerFrontendEntityTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<constraint name="Magento\Newsletter\Test\Constraint\AssertCustomerIsSubscribedToNewsletter" />
3333
</variation>
3434
<variation name="RegisterCustomerFrontendEntityTestVariation3" summary="Register Customer" ticketId="MAGETWO-12394">
35-
<data name="tag" xsi:type="string">test_type:acceptance_test, test_type:extended_acceptance_test, stable:no</data>
35+
<data name="tag" xsi:type="string">test_type:acceptance_test, test_type:extended_acceptance_test</data>
3636
<data name="customer/data/firstname" xsi:type="string">john</data>
3737
<data name="customer/data/lastname" xsi:type="string">doe</data>
3838
<data name="customer/data/email" xsi:type="string">johndoe%isolation%@example.com</data>

dev/tests/functional/tests/app/Magento/Theme/Test/Block/Links.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ protected function expandCustomerMenu()
5959
$this->_rootElement->find($this->toggleButton)->click();
6060
}
6161

62+
/**
63+
* Open customer registration
64+
*
65+
* @return void
66+
*/
67+
public function openCustomerCreateLink()
68+
{
69+
$this->openLink('Create an Account');
70+
}
71+
6272
/**
6373
* Open link by its title.
6474
*

0 commit comments

Comments
 (0)