test: remove remaining protractor references

This commit is contained in:
Dominik Broj 2020-09-16 21:52:23 +02:00
parent 255a682da0
commit a98ab0b56b
4 changed files with 8 additions and 12 deletions

View file

@ -1,5 +1,4 @@
import { AddTaskWithReminderParams, NBrowser, } from '../n-browser-interface';
import { Key } from 'protractor';
const TASK = 'task';
const SCHEDULE_TASK_ITEM = 'task-additional-info-item:nth-child(2)';
@ -38,7 +37,7 @@ module.exports = {
.pause(50)
.setValue(TIME_INP_H, h.toString())
.pause(50)
.setValue(TIME_INP_H, Key.ARROW_RIGHT)
.setValue(TIME_INP_H, this.Keys.ARROW_RIGHT)
.pause(50)
.setValue(TIME_INP_M, m.toString())
.waitForElementVisible(DIALOG_SUBMIT)

View file

@ -1,5 +1,4 @@
import {NBrowser} from '../n-browser-interface';
import {Key} from 'protractor';
const SIDE_INNER = '.additional-info-panel';
@ -11,7 +10,7 @@ module.exports = {
.pause(50)
.moveToElement(taskSel, 100, 15)
.click(taskSel)
.sendKeys(taskSel, Key.ARROW_RIGHT)
.sendKeys(taskSel, this.Keys.ARROW_RIGHT)
.waitForElementVisible(SIDE_INNER)
.pause(50)
;

View file

@ -1,4 +1,3 @@
import {Key} from 'protractor';
import {BASE} from '../e2e.const';
import {NBrowser} from '../n-browser-interface';
@ -22,6 +21,6 @@ module.exports = {
.waitForElementVisible(ADD_TASK_GLOBAL_SEL)
.setValue(ADD_TASK_GLOBAL_SEL, 'test task hohoho')
.setValue(ADD_TASK_GLOBAL_SEL, Key.ENTER)
.setValue(ADD_TASK_GLOBAL_SEL, browser.Keys.ENTER)
.end(),
};

View file

@ -1,4 +1,3 @@
import {Key} from 'protractor';
import {BASE} from '../e2e.const';
import {NBrowser} from '../n-browser-interface';
@ -27,7 +26,7 @@ module.exports = {
.waitForElementVisible(ADD_TASK_INITIAL)
.setValue(ADD_TASK_INITIAL, '1 test task hihi')
.setValue(ADD_TASK_INITIAL, Key.ENTER)
.setValue(ADD_TASK_INITIAL, browser.Keys.ENTER)
.waitForElementVisible(TASK)
.assert.visible(TASK)
@ -39,9 +38,9 @@ module.exports = {
.waitForElementVisible(ADD_TASK_INITIAL)
.setValue(ADD_TASK_INITIAL, '2 test task hihi')
.setValue(ADD_TASK_INITIAL, Key.ENTER)
.setValue(ADD_TASK_INITIAL, browser.Keys.ENTER)
.setValue(ADD_TASK_INITIAL, '3 some other task')
.setValue(ADD_TASK_INITIAL, Key.ENTER)
.setValue(ADD_TASK_INITIAL, browser.Keys.ENTER)
.waitForElementVisible(TASK)
.assert.visible(TASK)
@ -57,9 +56,9 @@ module.exports = {
.waitForElementVisible(ADD_TASK_GLOBAL)
.setValue(ADD_TASK_GLOBAL, '4 test task hohoho')
.setValue(ADD_TASK_GLOBAL, Key.ENTER)
.setValue(ADD_TASK_GLOBAL, browser.Keys.ENTER)
.setValue(ADD_TASK_GLOBAL, '5 some other task xoxo')
.setValue(ADD_TASK_GLOBAL, Key.ENTER)
.setValue(ADD_TASK_GLOBAL, browser.Keys.ENTER)
.waitForElementVisible(TASK)
.assert.visible(TASK)