File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
dev/tests/functional/tests/app/Magento/Checkout/Test Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ class Login extends Form
49
49
*/
50
50
protected $ loadingMask = '.loading-mask ' ;
51
51
52
+ private $ emailSelector = '[name="username"] ' ;
53
+
52
54
/**
53
55
* Select how to perform checkout whether guest or registered customer.
54
56
*
@@ -98,8 +100,7 @@ public function loginCustomer(FixtureInterface $customer)
98
100
*/
99
101
public function fillGuestFields (FixtureInterface $ customer )
100
102
{
101
- $ mapping = $ this ->dataMapping ();
102
- $ this ->_rootElement ->find ($ mapping ['email ' ]['selector ' ], $ mapping ['email ' ]['strategy ' ])
103
+ $ this ->_rootElement ->find ($ this ->emailSelector )
103
104
->setValue ($ customer ->getEmail ());
104
105
}
105
106
Original file line number Diff line number Diff line change @@ -82,10 +82,8 @@ public function run()
82
82
{
83
83
if ($ this ->checkoutMethod === 'login ' ) {
84
84
$ this ->checkoutOnepage ->getLoginBlock ()->loginCustomer ($ this ->customer );
85
- } elseif ($ this ->checkoutMethod === 'guest ' ) {
86
- if (empty ($ this ->shipping )) {
87
- $ this ->checkoutOnepage ->getLoginBlock ()->fillGuestFields ($ this ->customer );
88
- }
85
+ } elseif (($ this ->checkoutMethod === 'guest ' ) && empty ($ this ->shipping )) {
86
+ $ this ->checkoutOnepage ->getLoginBlock ()->fillGuestFields ($ this ->customer );
89
87
}
90
88
}
91
89
You can’t perform that action at this time.
0 commit comments