mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
[no-issue] Parallel run e2e and e2e common action refactoring (#4702)
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { element, by, browser, protractor } from 'protractor';
|
||||
import { element, by, browser } from 'protractor';
|
||||
import { DateUtil } from '../../../util/dateUtil';
|
||||
import { BrowserVisibility } from '@alfresco/adf-testing';
|
||||
import { BrowserVisibility, BrowserActions } from '@alfresco/adf-testing';
|
||||
|
||||
export class DatePickerPage {
|
||||
|
||||
@@ -56,15 +56,12 @@ export class DatePickerPage {
|
||||
selectTodayDate() {
|
||||
this.checkDatePickerIsDisplayed();
|
||||
const todayDate = element(by.css('.mat-calendar-body-today'));
|
||||
BrowserVisibility.waitUntilElementIsClickable(todayDate);
|
||||
todayDate.click();
|
||||
BrowserActions.click(todayDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
closeDatePicker() {
|
||||
browser.controlFlow().execute(async () => {
|
||||
await browser.actions().sendKeys(protractor.Key.ESCAPE).perform();
|
||||
});
|
||||
BrowserActions.closeMenuAndDialogs();
|
||||
this.checkDatePickerIsNotDisplayed();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user