use Logger instead of console (#1417)

This commit is contained in:
Denys Vuika
2020-04-17 12:25:25 +01:00
committed by GitHub
parent dda83d27a0
commit cfb9c4bca9
22 changed files with 92 additions and 66 deletions

View File

@@ -24,6 +24,7 @@
*/
import { ElementFinder, ElementArrayFinder, by, browser, ExpectedConditions as EC, protractor } from 'protractor';
import { Logger } from '@alfresco/adf-testing';
import { BROWSER_WAIT_TIMEOUT } from '../../configs';
import { Component } from '../component';
import { Menu } from '../menu/menu';
@@ -247,7 +248,7 @@ export class DataTable extends Component {
await browser.actions().mouseMove(item).perform();
await browser.actions().doubleClick().perform();
} catch (error) {
console.log('--- catch: doubleClickOnRowByName', error);
Logger.error('--- catch: doubleClickOnRowByName', error);
}
}
@@ -259,7 +260,7 @@ export class DataTable extends Component {
await item.click();
} catch (e) {
console.log('--- select item catch : ', e);
Logger.error('--- select item catch : ', e);
}
}
}
@@ -272,7 +273,7 @@ export class DataTable extends Component {
await item.click();
} catch (e) {
console.log('--- unselect item catch : ', e);
Logger.error('--- unselect item catch : ', e);
}
}
}
@@ -303,7 +304,7 @@ export class DataTable extends Component {
await this.wait();
}
} catch (error) {
console.log('------ clearSelection catch : ', error);
Logger.error('------ clearSelection catch : ', error);
}
}