Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Behat] Rework behat - using attributes instead class/id in address and shipping page #10921

Merged
merged 2 commits into from
Dec 19, 2019

Conversation

AdamKasp
Copy link
Contributor

@AdamKasp AdamKasp commented Dec 11, 2019

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no/
License MIT

Replacing class/id by attributes in AddressPage, selectShippingPage and related html
for now, I left elements related to JS without changes, because simple attribute generates errors, it will be done in the near feature.

@AdamKasp AdamKasp requested a review from a team as a code owner December 11, 2019 08:29
@AdamKasp AdamKasp changed the title Rework behat checkout pages part 2 [Behat] Rework behat checkout pages part 2 Dec 11, 2019
@AdamKasp AdamKasp force-pushed the rework-behat-checkout-pages-part-2 branch 3 times, most recently from 40799fd to edaf304 Compare December 11, 2019 10:54
@AdamKasp AdamKasp changed the title [Behat] Rework behat checkout pages part 2 [Behat] Rework behat checkout pages - using attributes instead class/id Dec 11, 2019
@AdamKasp AdamKasp force-pushed the rework-behat-checkout-pages-part-2 branch from edaf304 to 82921fd Compare December 11, 2019 12:34
src/Sylius/Behat/Page/Shop/Checkout/AddressPage.php Outdated Show resolved Hide resolved
src/Sylius/Behat/Page/Shop/Checkout/AddressPage.php Outdated Show resolved Hide resolved
src/Sylius/Behat/Page/Shop/Checkout/AddressPage.php Outdated Show resolved Hide resolved
src/Sylius/Behat/Page/Shop/Checkout/AddressPage.php Outdated Show resolved Hide resolved
src/Sylius/Behat/Page/Shop/Checkout/SelectShippingPage.php Outdated Show resolved Hide resolved
src/Sylius/Behat/Page/Shop/Checkout/SelectShippingPage.php Outdated Show resolved Hide resolved
src/Sylius/Behat/Page/Shop/Checkout/SelectShippingPage.php Outdated Show resolved Hide resolved
@Zales0123 Zales0123 added DX Issues and PRs aimed at improving Developer eXperience. Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). labels Dec 13, 2019
@AdamKasp AdamKasp changed the title [Behat] Rework behat checkout pages - using attributes instead class/id [Behat] Rework behat - using attributes instead class/id in address and shipping page Dec 16, 2019
@AdamKasp AdamKasp force-pushed the rework-behat-checkout-pages-part-2 branch 12 times, most recently from 7e84f45 to 6bf8690 Compare December 18, 2019 09:28
@AdamKasp AdamKasp force-pushed the rework-behat-checkout-pages-part-2 branch from 6bf8690 to f765ed4 Compare December 18, 2019 10:29
@pamil pamil added Behat Issues and PRs aimed at improving Behat usage. and removed Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). labels Dec 18, 2019
@AdamKasp AdamKasp force-pushed the rework-behat-checkout-pages-part-2 branch from f765ed4 to 001efe2 Compare December 19, 2019 08:15
@AdamKasp AdamKasp force-pushed the rework-behat-checkout-pages-part-2 branch from 001efe2 to 905cf61 Compare December 19, 2019 08:57
@pamil pamil merged commit 223708b into Sylius:master Dec 19, 2019
@pamil
Copy link
Contributor

pamil commented Dec 19, 2019

Thanks, Adam! 🎉

GSadee added a commit that referenced this pull request Dec 19, 2019
…/id part in payment page (AdamKasp)

This PR was merged into the 1.7-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | based on #10921  
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.5 or 1.6 branch (the lowest possible)
 - Features and deprecations must be submitted against the master branch
 - Make sure that the correct base branch is set
-->
rework payment page

Commits
-------

0907ab9 Rework behats - checkout paymentPage
{% include '@SyliusShop/Common/Form/_address.html.twig' with {'form': form.shippingAddress, 'order': order} %}
{{ form_row(form.differentBillingAddress, {'attr': {'data-toggles': 'sylius-billing-address'}}) }}
{% include '@SyliusShop/Common/Form/_address.html.twig' with {'form': form.shippingAddress, 'order': order, 'type': 'shipping'} %}
{{ form_row(form.differentBillingAddress,sylius_test_form_attribute('different-billing-address')|sylius_merge_recursive({'attr': {'data-toggles': 'sylius-billing-address'}, 'label_attr': {'data-test-different-billing-address-label': ''}} )) }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{ form_row(form.differentBillingAddress,sylius_test_form_attribute('different-billing-address')|sylius_merge_recursive({'attr': {'data-toggles': 'sylius-billing-address'}, 'label_attr': {'data-test-different-billing-address-label': ''}} )) }}
{{ form_row(form.differentBillingAddress, sylius_test_form_attribute('different-billing-address') | sylius_merge_recursive({'attr': {'data-toggles': 'sylius-billing-address'}, 'label_attr': {'data-test-different-billing-address-label': ''}} )) }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Behat Issues and PRs aimed at improving Behat usage. DX Issues and PRs aimed at improving Developer eXperience.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants