[ACS-5018] library actions protractor tests (#3545)

* [ACS-5018] library actions protractor tests

* updating type and timeout

* implementing reviews comments
This commit is contained in:
Adam Zakrzewski
2023-11-29 19:09:07 +01:00
committed by GitHub
parent 8831c2e82a
commit 1b55de018b
12 changed files with 529 additions and 444 deletions

View File

@@ -27,7 +27,6 @@ import { GenericDialog } from '../dialog/generic-dialog';
import { isPresentAndEnabled } from '../../utilities/utils';
export class ConfirmDialog extends GenericDialog {
okButton = this.childElement(by.buttonText('OK'));
cancelButton = this.childElement(by.buttonText('Cancel'));
keepButton = this.childElement(by.buttonText('Keep'));
deleteButton = this.childElement(by.buttonText('Delete'));
@@ -41,10 +40,6 @@ export class ConfirmDialog extends GenericDialog {
return this.content.getText();
}
async isOkEnabled(): Promise<boolean> {
return isPresentAndEnabled(this.okButton);
}
async isCancelEnabled(): Promise<boolean> {
return isPresentAndEnabled(this.cancelButton);
}

View File

@@ -38,8 +38,6 @@ export class Toolbar extends Component {
downloadButton = element(By.css(`.mat-icon-button[title='Download']`));
viewDetailsButton = element(By.css(`button[title='View Details']`));
printButton = element(By.css(`button[title='Print']`));
joinButton = element(By.css(`button[title='Join']`));
leaveButton = element(By.css(`button[title='Leave Library']`));
permanentlyDeleteButton = element(By.css(`button[title='Permanently Delete']`));
restoreButton = element(By.css(`button[title='Restore']`));
searchIconButton = element(By.css(`button[title='Search']`));