diff --git a/packages/calypso-e2e/src/lib/pages/marketing-page.ts b/packages/calypso-e2e/src/lib/pages/marketing-page.ts index 62f8b54d474cd..0bccc7399f199 100644 --- a/packages/calypso-e2e/src/lib/pages/marketing-page.ts +++ b/packages/calypso-e2e/src/lib/pages/marketing-page.ts @@ -168,9 +168,8 @@ export class MarketingPage { * @param {string} param1.password Tumblr password. */ async setupTumblr( popup: Page, { username, password }: { username: string; password: string } ) { - // Wait for the page load to complete. Otherwise, a `Cannot POST /login` error - // is shown. - await popup.waitForLoadState( 'networkidle' ); + // This selector allows us to proceed without waiting for `networkidle`. + await popup.waitForSelector( '[data-tumblr-ready="true"]' ); // Fill in the email and password. await popup.getByRole( 'textbox', { name: 'email' } ).fill( username );