diff --git a/test/e2e/flask/multichain-api/connect.spec.ts b/test/e2e/flask/multichain-api/connect.spec.ts index ff074251f510..62df26b0ddec 100644 --- a/test/e2e/flask/multichain-api/connect.spec.ts +++ b/test/e2e/flask/multichain-api/connect.spec.ts @@ -1,6 +1,7 @@ import * as path from 'path'; import { DAPP_URL, + largeDelayMs, openDapp, unlockWallet, WINDOW_TITLES, @@ -37,7 +38,28 @@ describe('Multichain Connect', function () { // TODO need data-testid for input + await driver.fill( + '[placeholder="Enter extension ID"]', + 'pmeejofbihagkmnpoeoghmdmpaonndpl', + ); await driver.clickElement({ text: 'Connect', tag: 'button' }); + await driver.delay(largeDelayMs); + + const mainnetCheckbox = await driver.findElement({ + text: 'Ethereum Mainnet', + // tag: 'label', + }); + + await driver.scrollToElement(mainnetCheckbox); + await driver.delay(largeDelayMs); + + await driver.clickElement(mainnetCheckbox); + + await driver.clickElement({ name: 'OP Mainnet', tag: 'label' }); + await driver.clickElement({ + text: 'wallet_createSession', + tag: 'button', + }); await driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog); },