[ADF-3333] Test for Viewer - Part 3 (#3927)

* [ADF-3333] Test for Viewer - Part 3

* Fixing failing test

* remove async not necessary

* fix lint
This commit is contained in:
Marouan Bentaleb
2018-11-28 00:22:42 +00:00
committed by Eugenio Romano
parent 94905d1065
commit cc7b9230ee
11 changed files with 338 additions and 125 deletions

View File

@@ -119,7 +119,6 @@ export class ShareDialog {
setDefaultDay() {
const selector = '.mat-datetimepicker-calendar-body-active .mat-datetimepicker-calendar-body-cell-content';
Util.waitUntilElementIsVisible(this.dayPicker);
const tomorrow = moment().add(1, 'day').date();
let tomorrow = new Date(new Date().getTime() + 24 * 60 * 60 * 1000).getDate().toString();
this.dayPicker.element(by.cssContainingText(selector, tomorrow)).click();
}