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

Date range test coverage improvement #7647

Merged
merged 22 commits into from
Jun 26, 2020
Merged

Date range test coverage improvement #7647

merged 22 commits into from
Jun 26, 2020

Conversation

PlamenaMiteva
Copy link
Contributor

@PlamenaMiteva PlamenaMiteva commented Jun 22, 2020

Closes #7477

Some additional enhancements to the IgxDateRangePickerComponent are included in this PR:

  • The picker will now accumulate all errors and return them as one object during validation.

  • Also, in single input mode it will use only displayFormat for formatting the input's dates.

  • Additionally, the picker's displayValue as well as its default placeholder (in single input mode) are governed by Angular's getLocaleDateFormat and formatDate. These two methods can fail if a user has defined a locale setting, but has not registered it in their application via the registerLocaleData function. In this case the picker will now log warnings and will revert to the browser's locale settings while still adhering to the defined displayFormat. If a user has not provided any displayFormat, the picker has a default, constant format which will be used instead.

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

PlamenaMiteva and others added 16 commits May 13, 2020 09:52
…into PMiteva/date-range-tests

# Conflicts:
#	projects/igniteui-angular/src/lib/date-range-picker/date-range-picker.component.spec.ts
…I/igniteui-angular into PMiteva/date-range-tests

# Conflicts:
#	projects/igniteui-angular/src/lib/date-range-picker/date-range-picker.component.spec.ts
date-editor: update input format on doCheck and onChanges
- fallback to Intl if getLocaleDateFormat fails
- use only displayFormat in single input mode
@Lipata Lipata added the squash-merge Merge PR with "Squash and Merge" option label Jun 22, 2020
Lipata
Lipata previously approved these changes Jun 22, 2020
@jackofdiamond5 jackofdiamond5 dismissed stale reviews from wnvko and Lipata via dff5cf8 June 23, 2020 08:08
@PlamenaMiteva PlamenaMiteva self-assigned this Jun 24, 2020
@PlamenaMiteva PlamenaMiteva added 💥 status: in-test PRs currently being tested ✅ status: verified Applies to PRs that have passed manual verification and removed ❌ status: awaiting-test PRs awaiting manual verification 💥 status: in-test PRs currently being tested labels Jun 24, 2020
@Lipata Lipata merged commit 1c72dce into 9.1.x Jun 26, 2020
@Lipata Lipata deleted the PMiteva/date-range-tests branch June 26, 2020 08:02
Lipata pushed a commit that referenced this pull request Jun 26, 2020
Authored-by: Boris <jackofdiamond596@gmail.com>
Plamena Miteva
Lipata added a commit that referenced this pull request Jun 26, 2020
…erage

test(date-range-picker): improve coverage and refactor #5732 (#7647)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📅 date-range-picker squash-merge Merge PR with "Squash and Merge" option version: 9.1.x ✅ status: verified Applies to PRs that have passed manual verification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants