[ACA-1517] add tests for create library (#799)

This commit is contained in:
Adina Parpalita
2018-11-13 17:32:07 +02:00
committed by Denys Vuika
parent 5adab43787
commit b592ea8635
6 changed files with 438 additions and 12 deletions

View File

@@ -56,11 +56,16 @@ export class Sidenav extends Component {
await menu.waitForMenuToOpen();
}
async openCreateDialog() {
async openCreateFolderDialog() {
await this.openNewMenu();
await this.menu.clickMenuItem('Create folder');
}
async openCreateLibraryDialog() {
await this.openNewMenu();
await this.menu.clickMenuItem('Create Library');
}
async isActiveByLabel(label: string) {
const className = await this.getLinkByLabel(label).getAttribute('class');
return className.includes(Sidenav.selectors.activeLink.replace('.', ''));