-
Notifications
You must be signed in to change notification settings - Fork 1
fix: TT-167 Date picker disable future dates #642
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
Changes from 2 commits
62d540e
36a3b9b
056439e
4c6b655
4045b4c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -468,6 +468,12 @@ describe('DetailsFieldsComponent', () => { | |
| expect(endDateInput.value).not.toEqual(startDateInput.value); | ||
| expect(startDateInput.value).toEqual(expectedStartDate); | ||
| }); | ||
|
|
||
| it('on get actual date should return the current date', () => { | ||
Angeluz-07 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| const actualDateExpected = new Date().toISOString().split('T')[0]; | ||
|
|
||
| expect(component.getActualDate()).toEqual(actualDateExpected); | ||
| }); | ||
| /* | ||
| TODO As part of https://github.com/ioet/time-tracker-ui/issues/424 a new parameter was added to the details-field-component, | ||
| and now these couple of tests are failing. A solution to this error might be generate a Test Wrapper Component. More details here: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -171,6 +171,10 @@ export class DetailsFieldsComponent implements OnChanges, OnInit { | |
| this.selectedTechnologies = $event; | ||
| } | ||
|
|
||
| getActualDate(): string { | ||
|
||
| return new Date().toISOString().split('T')[0]; | ||
| } | ||
|
|
||
| get project_id() { | ||
| return this.entryForm.get('project_id'); | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.