fix e2e tests

This commit is contained in:
Denys Vuika
2017-10-19 16:26:52 +01:00
parent fd74683a27
commit 027aeca81d
15 changed files with 56 additions and 39 deletions

View File

@@ -15,18 +15,18 @@
* limitations under the License.
*/
import { browser } from 'protractor';
import { browser, promise } from 'protractor';
declare var window;
export class LocalStorageUtility {
static clear(): Promise<any> {
static clear(): promise.Promise<any> {
return browser.executeScript(() => {
return window.localStorage.clear();
});
}
static getTicket(): Promise<any> {
static getTicket(): promise.Promise<any> {
return browser.executeScript(() => {
return window.localStorage.getItem('ticket-ECM');
});