[ACA-1767] add tests for Viewer actions (#641)

* add tests for Viewer actions

* exclude e2e from auto-formatting for now

* update lock file
This commit is contained in:
Adina Parpalita
2018-09-18 18:54:33 +03:00
committed by Denys Vuika
parent f9e9057974
commit a9467dcc47
18 changed files with 2618 additions and 1481 deletions

View File

@@ -23,13 +23,13 @@
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
import { ElementFinder, ElementArrayFinder, by, promise, protractor, browser } from 'protractor';
import { ElementFinder, ElementArrayFinder, by, protractor, browser } from 'protractor';
import { Menu } from '../menu/menu';
import { Component } from '../component';
export class Toolbar extends Component {
private static selectors = {
root: 'adf-toolbar',
root: '.adf-toolbar',
button: '.mat-icon-button'
};
@@ -70,4 +70,8 @@ export class Toolbar extends Component {
return await button.getAttribute('title');
}
async clickButton(title: string) {
const btn = this.getButtonByTitleAttribute(title);
await btn.click();
}
}