File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 11import { expect , type Page } from '@playwright/test' ;
22import { TBAcctsPage } from "../pages/tb-accts-page" ;
3- import { DashboardPage } from '../pages/dashboard-page' ;
43
54import {
65 TB_SEND_TARGET_ENV ,
@@ -20,7 +19,6 @@ import {
2019export const navigateToSendAndSignIn = async ( page : Page , testProjectName : string = 'desktop' ) => {
2120 console . log ( `navigating to send ${ TB_SEND_TARGET_ENV } (${ TB_SEND_BASE_URL } )` ) ;
2221 const tbAcctsSignInPage = new TBAcctsPage ( page ) ;
23- const dashboardPage = new DashboardPage ( page ) ;
2422
2523 await page . goto ( `${ TB_SEND_BASE_URL } ` ) ;
2624 await page . waitForTimeout ( TIMEOUT_5_SECONDS ) ;
@@ -32,10 +30,7 @@ export const navigateToSendAndSignIn = async (page: Page, testProjectName: strin
3230 await tbAcctsSignInPage . localSendSignIn ( ) ;
3331 }
3432 } else {
35- // sign-in using tb accts; first we click the 'login with your tb pro account' button
36- await expect ( tbAcctsSignInPage . signInUsingTBAcctsBtn ) . toBeVisible ( { timeout : TIMEOUT_60_SECONDS } ) ;
37- await tbAcctsSignInPage . signInUsingTBAcctsBtn . click ( ) ;
38- // then we sign-in to tb accounts itself
33+ // when navigate to TB Send it now automatically goes directly to TB Pro sign-in dialog
3934 await tbAcctsSignInPage . signIn ( testProjectName ) ;
4035 }
4136}
You can’t perform that action at this time.
0 commit comments