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

Textarea patch 1 #26142

Merged
merged 7 commits into from
Feb 13, 2020
Merged

Conversation

textarea
Copy link
Contributor

@textarea textarea commented Dec 19, 2019

Description (*)

On modal setTitle() call, subTitle tag get erased and not appended any more, caused by:
modalSubTitle: '[data-role="subTitle"]'

Fixed Issues (if relevant)

  1. Modal Popup and Custom subTitle erased #26141: Modal Popup and Custom subTitle erased

Manual testing scenarios (*)

  1. Create a popup or custom modal with a title and subtitle.
  2. Change title with setTitle() method

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@m2-assistant
Copy link

m2-assistant bot commented Dec 19, 2019

Hi @textarea. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

Copy link
Contributor

@krzksz krzksz left a comment

Choose a reason for hiding this comment

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

I think we should rather change the selector in JavaScript file to [data-role="subtitle"] as I wasn't able to find camel case data-role attribute value anywhere else in Magento.

@ghost ghost assigned krzksz Dec 23, 2019
@textarea
Copy link
Contributor Author

textarea commented Dec 23, 2019

Hi @krzksz, as you prefer, but there are different camel case data-role attributes, for example:
modalCloseBtn: '[data-role="closeBtn"]' in the same modal.js file.

Copy link
Contributor

@krzksz krzksz left a comment

Choose a reason for hiding this comment

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

That's true I don't know why I didn't find it when searching through the files.

@magento-engcom-team
Copy link
Contributor

Hi @krzksz, thank you for the review.
ENGCOM-6517 has been created to process this Pull Request
✳️ @krzksz, could you please add one of the following labels to the Pull Request?

Label Description
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests

@krzksz krzksz added the Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests label Dec 23, 2019
@krzksz
Copy link
Contributor

krzksz commented Dec 23, 2019

Hi @textarea, great contribution!
Due to Magento Definition of Done all code must be covered by tests. Please cover your fix by auto test.

@engcom-Golf
Copy link
Contributor

I will take care of test coverage

@textarea
Copy link
Contributor Author

Thanks @Nazar65 !

@textarea textarea requested a review from DrewML as a code owner January 20, 2020 10:36
@engcom-Golf engcom-Golf added Auto-Tests: Covered All changes in Pull Request is covered by auto-tests and removed Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests labels Jan 20, 2020
@Nazar65 Nazar65 force-pushed the textarea-patch-1 branch 2 times, most recently from e434332 to fcce5b8 Compare January 20, 2020 11:50
@engcom-Alfa
Copy link
Contributor

✔️ QA Passed

@engcom-Golf
Copy link
Contributor

failed Functional Tests B2B Not related to the changes in this PR

@magento-engcom-team
Copy link
Contributor

Hi @krzksz, thank you for the review.
ENGCOM-6517 has been created to process this Pull Request

@slavvka
Copy link
Member

slavvka commented Feb 7, 2020

@textarea Please fix failing Unit test

@Nazar65
Copy link
Member

Nazar65 commented Feb 9, 2020

I will fix them

@Nazar65
Copy link
Member

Nazar65 commented Feb 10, 2020

@slavvka done ✔️

@m2-assistant
Copy link

m2-assistant bot commented Feb 13, 2020

Hi @textarea, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@sdzhepa sdzhepa mentioned this pull request May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants