Skip to content

Commit

Permalink
ui-tests minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
sgauruseu committed Jan 10, 2025
1 parent e79ea44 commit eb70a19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions testing/page_objects/browsepanel/new.principal.dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ class NewPrincipalDialog extends Page {
}

//clicks on User, User Group, Id Provider....
clickOnItem(itemName) {
async clickOnItem(itemName) {
let selector = XPATH.itemViewer + lib.itemByDisplayName(itemName);
return this.clickOnElement(selector)
return await this.clickOnElement(selector)
}

isCancelButtonDisplayed() {
Expand Down
3 changes: 2 additions & 1 deletion testing/page_objects/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ class Page {
await this.pause(400);
return await this.getText(notificationXpath);
} catch (err) {
throw new Error('Error when wait for the notification message: ' + err);
let screenshot = appConst.generateRandomName('err_notification');
throw new Error(`Error occurred - notification message:screenshot:${screenshot} ` + err);
}
}

Expand Down

0 comments on commit eb70a19

Please sign in to comment.