Skip to content

Commit 68cd52b

Browse files
authored
Update nightly sign-in E2E test for latest sign-in changes (#682)
1 parent 3274df1 commit 68cd52b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/send/e2e/utils/utils.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { expect, type Page } from '@playwright/test';
22
import { TBAcctsPage } from "../pages/tb-accts-page";
3-
import { DashboardPage } from '../pages/dashboard-page';
43

54
import {
65
TB_SEND_TARGET_ENV,
@@ -20,7 +19,6 @@ import {
2019
export 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
}

0 commit comments

Comments
 (0)