gns3-web-ui/e2e/helpers/common.po.ts
2021-04-12 13:46:28 +02:00

22 lines
397 B
TypeScript

import { browser } from 'protractor';
export class TestHelper {
sleep(value: number) {
browser.sleep(value);
}
waitForLoading() {
browser.waitForAngular();
}
async asyncForEach(array, callback) {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array);
}
}
getCurrentUrl() {
return browser.getCurrentUrl();
}
}