File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
dev/tests/functional/tests/app/Magento Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ class RegisterCustomerFrontendEntityTest extends Injectable
57
57
* @param CustomerAccountCreate $customerAccountCreate
58
58
* @param CmsIndex $cmsIndex
59
59
* @param LogoutCustomerOnFrontendStep $logoutCustomerOnFrontendStep
60
- * @return void
61
60
*/
62
61
public function __inject (
63
62
CustomerAccountCreate $ customerAccountCreate ,
@@ -80,7 +79,7 @@ public function test(Customer $customer)
80
79
$ this ->logoutCustomerOnFrontendStep ->run ();
81
80
// Steps
82
81
$ this ->cmsIndex ->open ();
83
- $ this ->cmsIndex ->getLinksBlock ()->openLink ( ' Create an Account ' );
82
+ $ this ->cmsIndex ->getLinksBlock ()->openCustomerCreateLink ( );
84
83
$ this ->customerAccountCreate ->getRegisterForm ()->registerCustomer ($ customer );
85
84
}
86
85
Original file line number Diff line number Diff line change @@ -59,6 +59,16 @@ protected function expandCustomerMenu()
59
59
$ this ->_rootElement ->find ($ this ->toggleButton )->click ();
60
60
}
61
61
62
+ /**
63
+ * Open customer registration
64
+ *
65
+ * @return void
66
+ */
67
+ public function openCustomerCreateLink ()
68
+ {
69
+ $ this ->openLink ('Create an Account ' );
70
+ }
71
+
62
72
/**
63
73
* Open link by its title.
64
74
*
You can’t perform that action at this time.
0 commit comments