-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' of github.com:valor-software/ngx-bootstrap…
… into fix-tooltip-delay-disposal
- Loading branch information
Showing
220 changed files
with
5,934 additions
and
1,276 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,42 @@ | ||
import { DatepickerPo } from '../../support/datepicker.po'; | ||
|
||
describe('Datepicker demo test suite: Quick-select-ranges', () => { | ||
const datepicker = new DatepickerPo(); | ||
const quickSelectRange = datepicker.exampleDemosArr.quickSelectRange; | ||
|
||
beforeEach(() => { | ||
datepicker.navigateTo(); | ||
datepicker.scrollToMenu('Quick select ranges'); | ||
}); | ||
|
||
it(`example contains 1 input of Daterangepicker`, () => { | ||
datepicker.isInputValueEqual(quickSelectRange, ''); | ||
}); | ||
|
||
it(`when user clicks on Daterangepicker input, then container opened and user see list of quick ranges to select`, () => { | ||
datepicker.clickOnDaterangepickerInput(quickSelectRange); | ||
datepicker.isDaterangepickerOpened(true); | ||
datepicker.isDaterangePickerBodyExistAndCorrect('date'); | ||
datepicker.isQuickSelectRangesDisplayed(); | ||
}); | ||
|
||
it('when no date value is selected, then custom range button should be active', () => { | ||
datepicker.clickOnDaterangepickerInput(quickSelectRange); | ||
datepicker.isQuickSelectRangeButtonHighlighted(2); | ||
}); | ||
|
||
it('when user clicks on a range from quick select list, that range is applied to datepicker', () => { | ||
datepicker.clickOnDaterangepickerInput(quickSelectRange); | ||
datepicker.isDaterangepickerOpened(true); | ||
datepicker.isQuickSelectLastDaysApplied(quickSelectRange, 0); | ||
datepicker.clickOnDaterangepickerInput(quickSelectRange); | ||
datepicker.isQuickSelectLastDaysApplied(quickSelectRange, 1); | ||
}); | ||
|
||
it('when user clicks on a range from quick select, then that button should be selected/highlighted', () => { | ||
datepicker.clickOnDaterangepickerInput(quickSelectRange); | ||
datepicker.clickOnQuickRangeBtn(0); | ||
datepicker.clickOnDaterangepickerInput(quickSelectRange); | ||
datepicker.isQuickSelectRangeButtonHighlighted(0); | ||
}); | ||
}); |
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
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
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.