Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adonesky1 committed Dec 15, 2024
1 parent f355ffe commit 9c74eaf
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions test/e2e/flask/multichain-api/connect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,30 +36,18 @@ describe('Multichain Connect', function () {

await openDapp(driver, undefined, DAPP_URL);

// TODO need data-testid for input

await driver.fill(
'[placeholder="Enter extension ID"]',
'pmeejofbihagkmnpoeoghmdmpaonndpl',
'pmeejofbihagkmnpoeoghmdmpaonndpl', // TODO: this needs to be programmatically fetched
);
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('input[name="eip155:1"]');

await driver.clickElement(mainnetCheckbox);
await driver.clickElement('input[name="eip155:10"]');

await driver.clickElement({ name: 'OP Mainnet', tag: 'label' });
await driver.clickElement({
text: 'wallet_createSession',
tag: 'button',
});
await driver.clickElement('#create-session-btn');

await driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog);
},
Expand Down

0 comments on commit 9c74eaf

Please sign in to comment.