[ACA-1800] add tests for unsure file (#734)

small other changes
This commit is contained in:
Adina Parpalita
2018-10-18 20:32:46 +03:00
committed by Denys Vuika
parent 4536c43c9f
commit 3bf9cc1fb2
7 changed files with 946 additions and 112 deletions

View File

@@ -111,11 +111,16 @@ export class ShareDialog extends Component {
return this.expireInput;
}
async isShareToggleEnabled() {
async isShareToggleChecked() {
const toggleClass = await this.getShareToggle().getAttribute('class');
return toggleClass.includes('checked');
}
async isShareToggleEnabled() {
const toggleClass = await this.getShareToggle().getAttribute('class');
return toggleClass.includes('mat-disabled');
}
async isExpireToggleEnabled() {
const toggleClass = await this.getExpireToggle().getAttribute('class');
return toggleClass.includes('checked');
@@ -143,4 +148,7 @@ export class ShareDialog extends Component {
await this.expireToggle.click();
}
async clickShareToggle() {
await this.shareToggle.click();
}
}