File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
page-objects/pages/confirmations/redesign
tests/confirmations/transactions Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,9 @@ class TransactionConfirmation extends Confirmation {
7070 private readonly gasLimitInput : RawLocator =
7171 '[data-testid="gas-limit-input"]' ;
7272
73+ private readonly headerAccountName : RawLocator =
74+ '[data-testid="header-account-name"]' ;
75+
7376 private readonly networkName : RawLocator =
7477 '[data-testid="confirmation__details-network-name"]' ;
7578
@@ -215,6 +218,16 @@ class TransactionConfirmation extends Confirmation {
215218 } ) ;
216219 }
217220
221+ async checkHeaderAccountNameIsDisplayed ( account : string ) : Promise < void > {
222+ console . log (
223+ `Checking header account name ${ account } on transaction confirmation page.` ,
224+ ) ;
225+ await this . driver . waitForSelector ( {
226+ css : this . headerAccountName ,
227+ text : account ,
228+ } ) ;
229+ }
230+
218231 async checkPaidByMetaMask ( ) {
219232 await this . driver . findElement ( {
220233 css : this . paidByMetaMaskNotice ,
@@ -227,7 +240,7 @@ class TransactionConfirmation extends Confirmation {
227240 *
228241 * @param account - The sender account to check.
229242 */
230- async checkIsSenderAccountDisplayed ( account : string ) : Promise < void > {
243+ async checkSenderAccountIsDisplayed ( account : string ) : Promise < void > {
231244 console . log (
232245 `Checking sender account ${ account } on transaction confirmation page.` ,
233246 ) ;
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ describe('Metrics', function () {
6969 const transactionConfirmation = new TransactionConfirmation ( driver ) ;
7070 // verify UI before clicking advanced details to give time for the Transaction Added event to be emitted without Advanced Details being displayed
7171 await transactionConfirmation . checkPageIsLoaded ( ) ;
72- await transactionConfirmation . checkIsSenderAccountDisplayed (
72+ await transactionConfirmation . checkHeaderAccountNameIsDisplayed (
7373 'Account 1' ,
7474 ) ;
7575 await transactionConfirmation . checkGasFeeSymbol ( 'ETH' ) ;
You can’t perform that action at this time.
0 commit comments