File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
app/code/Magento/Checkout
view/frontend/web/template
dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 16
16
<element name =" orderLink" type =" text" selector =" a[href*=order_id].order-number" timeout =" 30" />
17
17
<element name =" orderNumberText" type =" text" selector =" .checkout-success > p:nth-child(1)" />
18
18
<element name =" continueShoppingButton" type =" button" selector =" .action.primary.continue" timeout =" 30" />
19
- <element name =" createAnAccount" type =" button" selector =" input[value= 'Create an Account']" timeout =" 30" />
19
+ <element name =" createAnAccount" type =" button" selector =" [data-bind*= " i18n: 'Create an Account'" ]" timeout =" 30" />
20
20
<element name =" printLink" type =" button" selector =" .print" timeout =" 30" />
21
21
</section >
22
22
</sections >
Original file line number Diff line number Diff line change 11
11
<section name =" CheckoutSuccessRegisterSection" >
12
12
<element name =" registerMessage" type =" text" selector =" #registration p:nth-child(1)" />
13
13
<element name =" customerEmail" type =" text" selector =" #registration p:nth-child(2)" />
14
- <element name =" createAccountButton" type =" button" selector =" #registration form input[type='submit' ]" timeout =" 30" />
14
+ <element name =" createAccountButton" type =" button" selector =" [data-bind*= " i18n: 'Create an Account' " ]" timeout =" 30" />
15
15
<element name =" orderNumber" type =" text" selector =" //p[text()='Your order # is: ']//span" />
16
16
</section >
17
17
</sections >
Original file line number Diff line number Diff line change 11
11
<!-- ko if: isFormVisible -->
12
12
< p data-bind ="i18n: 'You can track your order status by creating an account.' "> </ p >
13
13
< p > < span data-bind ="i18n: 'Email Address' "> </ span > : < span data-bind ="text: getEmailAddress() "> </ span > </ p >
14
- < form method =" get " data-bind ="attr: { action : getUrl() } ">
15
- < input type =" submit " class =" action primary " data-bind ="value: $t( 'Create an Account') " />
16
- </ form >
14
+ < a class =" action primary " data-bind ="attr: { href : getUrl() } ">
15
+ < span data-bind ="i18n: 'Create an Account' " />
16
+ </ a >
17
17
<!--/ko-->
18
18
</ div >
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class Registration extends Block
19
19
*
20
20
* @var string
21
21
*/
22
- protected $ createAccountButton = 'input [data-bind*="Create an Account"] ' ;
22
+ protected $ createAccountButton = '[data-bind*="i18n: \' Create an Account \' "] ' ;
23
23
24
24
/**
25
25
* Click 'Create an Account' button and wait until button will be not visible.
You can’t perform that action at this time.
0 commit comments