1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

update address path snap e2e tests

This commit is contained in:
PeterYinusa 2023-01-18 16:37:30 +00:00
parent 0dc6be8e14
commit 5380ec5e15
2 changed files with 16 additions and 4 deletions

View File

@ -71,7 +71,10 @@ describe('Test Snap bip-32', function () {
});
// wait for permissions popover, click checkboxes and confirm
await driver.delay(1000);
await driver.waitForSelector({
css: '.popover-header',
text: 'Are you sure?',
});
await driver.clickElement('#key-access-bip32-m-44h-0h-secp256k1-0');
await driver.clickElement('#key-access-bip32-m-44h-0h-ed25519-0');
await driver.clickElement({
@ -84,7 +87,10 @@ describe('Test Snap bip-32', function () {
await driver.switchToWindowWithTitle('Test Snaps', windowHandles);
// scroll to and click get public key
await driver.delay(1000);
await driver.waitForSelector({
css: '#connectBip32',
text: 'Reconnect to BIP-32 Snap',
});
const snapButton2 = await driver.findElement('#bip32GetPublic');
await driver.scrollToElement(snapButton2);
await driver.delay(1000);

View File

@ -69,7 +69,10 @@ describe('Test Snap bip-44', function () {
});
// deal with permissions popover
await driver.delay(1000);
await driver.waitForSelector({
css: '.popover-header',
text: 'Are you sure?',
});
await driver.clickElement('#key-access-bip44-1-0');
await driver.clickElement({
text: 'Confirm',
@ -79,7 +82,10 @@ describe('Test Snap bip-44', function () {
// click send inputs on test snap page
windowHandles = await driver.waitUntilXWindowHandles(1, 1000, 10000);
await driver.switchToWindowWithTitle('Test Snaps', windowHandles);
await driver.delay(1000);
await driver.waitForSelector({
css: '#connectBip44Snap',
text: 'Reconnect to BIP-44 Snap',
});
await driver.clickElement('#sendBip44Test');
// check the results of the public key test