Skip to content

Remove unneccessary overflowed class from minicart sidebar widget #28963

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

Merged

Conversation

lumnn
Copy link
Contributor

@lumnn lumnn commented Jul 1, 2020

Description (*)

After investigating minibasket sidebar widget I've noticed isOverflowed function that applies overflowed class to one of minibasket elements.

Searching further, it seems that the class or even the word overflowed in any case is not used anywhere in magento2 repository.

As I'm seeking any performance improvements for my personal Magento 2 project I thought it will be worth to submit the changes.

Manual testing scenarios (*)

Can't think of any real testing scenarios. All I've done is I've kept adding products to basket to see if it changes at all the look and behaviour of minibasket

Questions or comments

  • Do I check the checklist below now, later, or wait for some maintainer to check them for me?
  • This may break custom themes that expect overflowed class. However, I believe if custom theme want's this behaviour, then it should extend the JS widget.

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)

Resolved issues:

  1. resolves [Issue] Remove unneccessary overflowed class from minicart sidebar widget #29160: Remove unneccessary overflowed class from minicart sidebar widget

@m2-assistant
Copy link

m2-assistant bot commented Jul 1, 2020

Hi @lumnn. 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

❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names. Allowed build names are:

  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE,
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests

You can find more information about the builds here

ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review.

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

@lumnn
Copy link
Contributor Author

lumnn commented Jul 1, 2020

@magento run all tests

@lumnn lumnn changed the title Remove unneccessary overflowed class from checkout sidebar widget Remove unneccessary overflowed class from minicart sidebar widget Jul 1, 2020
@ptylek
Copy link
Contributor

ptylek commented Jul 2, 2020

Seems that test fails are not related to this PR. Nice catch!

@magento-engcom-team
Copy link
Contributor

Hi @ptylek, thank you for the review.
ENGCOM-7771 has been created to process this Pull Request
✳️ @ptylek, 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

@ptylek ptylek added Severity: S4 Affects aesthetics, professional look and feel, “quality” or “usability”. Priority: P3 May be fixed according to the position in the backlog. Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests Severity: S3 Affects non-critical data or functionality and does not force users to employ a workaround. and removed Priority: P3 May be fixed according to the position in the backlog. Severity: S4 Affects aesthetics, professional look and feel, “quality” or “usability”. labels Jul 2, 2020
@engcom-Delta engcom-Delta self-assigned this Jul 9, 2020
@engcom-Delta
Copy link
Contributor

✔️ QA passed
Was checked that minicart works as before on luma and blank themes
Luma:
#28963PrDesktop
#28963PRMobile
#28963Mobile1
#28963PRtab

Blank:
#28963PRBlankDesk
#28963PrBlankMobile
#28963PRBlankMobile1
#28963PRBlankTab

@engcom-Kilo engcom-Kilo self-assigned this Jul 9, 2020
@engcom-Kilo engcom-Kilo added the QA: Ready to add to Regression Scope Should be analyzed and added to Regression Testing Scope(if applicable) label Jul 9, 2020
@engcom-Kilo
Copy link
Contributor

@lumnn Please write issue number, if exist.

@VladimirZaets
Copy link
Contributor

@magento create issue

@ghost ghost added the Priority: P3 May be fixed according to the position in the backlog. label Jul 15, 2020
@engcom-Delta engcom-Delta added QA: Added to Regression Scope Scenario was analysed and added to Regression Testing Scope and removed QA: Ready to add to Regression Scope Should be analyzed and added to Regression Testing Scope(if applicable) labels Jul 24, 2020
@engcom-Kilo
Copy link
Contributor

@magento run all tests

@engcom-Kilo
Copy link
Contributor

Failed Functional Tests B2B - not related to changes in this Pull Request.

@m2-assistant
Copy link

m2-assistant bot commented Jul 29, 2020

Hi @lumnn, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Frontend Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests Component: Checkout Priority: P3 May be fixed according to the position in the backlog. Progress: accept QA: Added to Regression Scope Scenario was analysed and added to Regression Testing Scope Release Line: 2.4 Severity: S3 Affects non-critical data or functionality and does not force users to employ a workaround.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Issue] Remove unneccessary overflowed class from minicart sidebar widget
6 participants