mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
add tests for Restore from Trash (#79)
This commit is contained in:
committed by
Cilibiu Bogdan
parent
8fd55fbb3a
commit
d7ba58616c
@@ -25,7 +25,8 @@ export abstract class Page {
|
||||
app: by.css('app-root'),
|
||||
layout: by.css('app-layout'),
|
||||
overlay: by.css('.cdk-overlay-container'),
|
||||
snackBar: by.css('simple-snack-bar')
|
||||
snackBar: by.css('simple-snack-bar'),
|
||||
snackBarAction: by.css('.mat-simple-snackbar-action')
|
||||
};
|
||||
|
||||
public app: ElementFinder = element(this.locators.app);
|
||||
@@ -63,4 +64,8 @@ export abstract class Page {
|
||||
.then(() => this.snackBar.getText())
|
||||
.catch(() => '');
|
||||
}
|
||||
|
||||
getSnackBarAction(): ElementFinder {
|
||||
return this.snackBar.element(this.locators.snackBarAction);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user