Skip to content

Commit 8e0a26e

Browse files
authored
ENGCOM-4649: Remove unnecessary form on order success page #22126
2 parents b265f9e + 353d992 commit 8e0a26e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

app/code/Magento/Checkout/Test/Mftf/Section/CheckoutSuccessMainSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<element name="orderLink" type="text" selector="a[href*=order_id].order-number" timeout="30"/>
1717
<element name="orderNumberText" type="text" selector=".checkout-success > p:nth-child(1)"/>
1818
<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*=&quot;i18n: 'Create an Account'&quot;]" timeout="30"/>
2020
<element name="printLink" type="button" selector=".print" timeout="30"/>
2121
</section>
2222
</sections>

app/code/Magento/Checkout/Test/Mftf/Section/CheckoutSuccessRegisterSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<section name="CheckoutSuccessRegisterSection">
1212
<element name="registerMessage" type="text" selector="#registration p:nth-child(1)"/>
1313
<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*=&quot;i18n: 'Create an Account'&quot;]" timeout="30"/>
1515
<element name="orderNumber" type="text" selector="//p[text()='Your order # is: ']//span"/>
1616
</section>
1717
</sections>

app/code/Magento/Checkout/view/frontend/web/template/registration.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<!-- ko if: isFormVisible -->
1212
<p data-bind="i18n: 'You can track your order status by creating an account.'"></p>
1313
<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>
1717
<!--/ko-->
1818
</div>

dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Registration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Registration extends Block
1919
*
2020
* @var string
2121
*/
22-
protected $createAccountButton = 'input[data-bind*="Create an Account"]';
22+
protected $createAccountButton = '[data-bind*="i18n: \'Create an Account\'"]';
2323

2424
/**
2525
* Click 'Create an Account' button and wait until button will be not visible.

0 commit comments

Comments
 (0)