[ACS-5786] info drawer comments test cleanup (#3378)

* cleamup changes

* remove cleanup tests
This commit is contained in:
Akash Rathod
2023-08-09 15:13:31 +02:00
committed by GitHub
parent 4cee6563f5
commit a1f0f0d38e
3 changed files with 12 additions and 230 deletions

View File

@@ -106,6 +106,11 @@ export class CommentsTab extends Component {
return list.get(index - 1).getAttribute('id');
}
async getNthCommentText(index: number): Promise<string> {
const list = this.allByCss('mat-list-item .adf-comment-message');
return list.get(index - 1).getText();
}
async typeComment(text: string): Promise<void> {
await typeText(this.commentTextarea, text);
}

View File

@@ -115,7 +115,6 @@ export class InfoDrawer extends Component {
await this.commentsTab.waitForCommentsContainer();
await Promise.all([
BrowserVisibility.waitUntilElementIsVisible(this.commentsTab.component),
BrowserVisibility.waitUntilElementIsNotVisible(this.propertiesTab.component)
]);
} catch (error) {
Logger.error('--- info-drawer clickCommentsTab catch error: ', error);