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

Prefix dropdown in checkout doesn't select empty value by default if required #28238

Merged
merged 6 commits into from
Aug 13, 2020

Conversation

engcom-Charlie
Copy link
Contributor

Description (*)

Related Pull Requests

Fixes #18823

Fixed Issues (if relevant)

  1. Prefix dropdown in checkout doesn't select empty value by default if required #18823:Prefix dropdown in checkout doesn't select empty value by default if required

Manual testing scenarios (*)

Please see #18823

Questions or comments

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)

@engcom-Charlie
Copy link
Contributor Author

@magento run all tests

Copy link
Contributor

@orlangur orlangur left a comment

Choose a reason for hiding this comment

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

Let's first try to understand whether logic change is valid and only then apply necessary changes.

@engcom-Charlie
Copy link
Contributor Author

Hi @orlangur, thank you for review, in the required field we add empty value only for it will be shown by default but we can't place an order with this on checkout or create a customer with blank value.

@engcom-Charlie
Copy link
Contributor Author

@magento run all tests

@orlangur
Copy link
Contributor

@engcom-Charlie thanks, need to check this behavior in action.

@ghost ghost added Priority: P3 May be fixed according to the position in the backlog. Severity: S3 Affects non-critical data or functionality and does not force users to employ a workaround. labels Jun 9, 2020
@engcom-Charlie
Copy link
Contributor Author

Hi @orlangur, do You've any updates?

VladimirZaets
VladimirZaets previously approved these changes Jul 10, 2020
@magento-engcom-team
Copy link
Contributor

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

@engcom-Alfa engcom-Alfa self-assigned this Jul 15, 2020
@engcom-Charlie
Copy link
Contributor Author

Hi @ihor-sviziev, can You please review this PR?

@magento-engcom-team
Copy link
Contributor

Hi @ihor-sviziev, thank you for the review.
ENGCOM-7825 has been created to process this Pull Request

@engcom-Alfa
Copy link
Contributor

✔️ QA Passed

Manual testing scenario:

  1. In Admin Backend go to Stores > Configuration > Customers > Name and Address Options;
  2. Set "Show Prefix" to "Required";
  3. Set "Prefix Dropdown Options" to ";Mr;Mrs"
  4. Save Config;
  5. Go to your store;
  6. Add an item to your cart;
  7. Go to checkout;

Before: ✖️ Instead of having the empty value selected by default it will be always the first value selected.

2020-07-29_09-46

After: ✔️ The empty value in the drop-down prefix was selected by default.

2020-07-29_09-54

Case 2. Set Prefix to "Mr;Mrs;"

After: ✔️ Empty value at the end of the list

2020-07-29_09-58

Case 3. Set Prefix to ";Mr;Ms;"

After: ✔️ Empty value at the beginning and end of the list

2020-07-29_10-03

Note: As per comment, the expected behavior is:

Mr;Ms; - select with Mr , Ms and ""
;Mr;Ms - select with "", Mr and Ms
;Mr;Ms;- select with "", Mr, Ms and ""

@engcom-Echo engcom-Echo self-assigned this Jul 29, 2020
@engcom-Echo engcom-Echo added the QA: Ready to add to Regression Scope Should be analyzed and added to Regression Testing Scope(if applicable) label Jul 29, 2020
@engcom-Alfa engcom-Alfa 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 Aug 10, 2020
magento-engcom-team pushed a commit that referenced this pull request Aug 13, 2020
@magento-engcom-team magento-engcom-team merged commit 61a12b0 into magento:2.4-develop Aug 13, 2020
@m2-assistant
Copy link

m2-assistant bot commented Aug 13, 2020

Hi @engcom-Charlie, 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
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests Award: bug fix Component: Customer 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.

Prefix dropdown in checkout doesn't select empty value by default if required
7 participants