Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ describe('Multichain API', function () {
await confirmation.clickFooterConfirmButtonAndAndWaitForWindowToClose();
} else {
await confirmation.checkNetworkIsDisplayed('Localhost 7777');
await confirmation.clickFooterConfirmButtonAndAndWaitForWindowToClose();
await confirmation.clickFooterConfirmButton();

// third confirmation page should display Account 2 as sender account
await driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,18 @@ class TransactionConfirmation extends Confirmation {
console.log(
`Checking sender account ${account} on transaction confirmation page.`,
);
return await this.driver.isElementPresentAndVisible(
{
try {
await this.driver.waitForSelector({
css: this.senderAccount,
text: account,
},
2000,
);
});
return true;
} catch (err) {
console.log(
`Sender account ${account} is not displayed on transaction confirmation page.`,
);
return false;
}
}

/**
Expand Down