Skip to content

Commit

Permalink
prolly need data-test-ids
Browse files Browse the repository at this point in the history
  • Loading branch information
adonesky1 committed Dec 14, 2024
1 parent b0d2c86 commit f355ffe
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/e2e/flask/multichain-api/connect.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as path from 'path';
import {
DAPP_URL,
largeDelayMs,
openDapp,
unlockWallet,
WINDOW_TITLES,
Expand Down Expand Up @@ -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);
},
Expand Down

0 comments on commit f355ffe

Please sign in to comment.