-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding move to - to all components (#333)
* adding move to - to all componentns * trying to fix e2e * trying to fix e2e
- Loading branch information
Showing
9 changed files
with
126 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import {DemoPage} from './app.po'; | ||
|
||
describe('Move to date api', () => { | ||
|
||
let page: DemoPage; | ||
|
||
beforeEach(() => { | ||
page = new DemoPage(); | ||
page.navigateTo(); | ||
}); | ||
|
||
it('should move to date API on day', () => { | ||
const runner = (menuItem, input, isPicker, cont) => { | ||
menuItem.click(); | ||
page.moveCalendarTo.click(); | ||
|
||
if (isPicker) { | ||
input.click(); | ||
} | ||
|
||
expect(cont.getText()).toContain('1987'); | ||
}; | ||
|
||
runner(page.dayPickerMenu, page.dayPickerInput, true, page.dayCalendarNavHeaderBtn); | ||
runner(page.dayDirectiveMenu, page.dayDirectiveInput, true, page.dayCalendarNavHeaderBtn); | ||
runner(page.dayInlineMenu, null, false, page.dayCalendarNavHeaderBtnInline); | ||
|
||
runner(page.daytimePickerMenu, page.daytimePickerInput, true, page.dayCalendarNavHeaderBtn); | ||
runner(page.daytimeDirectiveMenu, page.daytimeDirectiveInput, true, page.dayCalendarNavHeaderBtn); | ||
runner(page.daytimeInlineMenu, null, false, page.dayTimeCalendarNavHeaderBtnInline); | ||
|
||
runner(page.monthPickerMenu, page.monthPickerInput, true, page.navHeader); | ||
runner(page.monthDirectiveMenu, page.monthDirectiveInput, true, page.navHeader); | ||
runner(page.monthInlineMenu, null, false, page.monthCalendarNavHeaderInline); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
import {SingleCalendarValue} from '../common/types/single-calendar-value'; | ||
|
||
export interface IDpDayPickerApi { | ||
open: () => void; | ||
close: () => void; | ||
} | ||
moveCalendarTo: (date: SingleCalendarValue) => void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.