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:
parent
0dc6be8e14
commit
5380ec5e15
@ -71,7 +71,10 @@ describe('Test Snap bip-32', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// wait for permissions popover, click checkboxes and confirm
|
// 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-secp256k1-0');
|
||||||
await driver.clickElement('#key-access-bip32-m-44h-0h-ed25519-0');
|
await driver.clickElement('#key-access-bip32-m-44h-0h-ed25519-0');
|
||||||
await driver.clickElement({
|
await driver.clickElement({
|
||||||
@ -84,7 +87,10 @@ describe('Test Snap bip-32', function () {
|
|||||||
await driver.switchToWindowWithTitle('Test Snaps', windowHandles);
|
await driver.switchToWindowWithTitle('Test Snaps', windowHandles);
|
||||||
|
|
||||||
// scroll to and click get public key
|
// 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');
|
const snapButton2 = await driver.findElement('#bip32GetPublic');
|
||||||
await driver.scrollToElement(snapButton2);
|
await driver.scrollToElement(snapButton2);
|
||||||
await driver.delay(1000);
|
await driver.delay(1000);
|
||||||
|
@ -69,7 +69,10 @@ describe('Test Snap bip-44', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// deal with permissions popover
|
// 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('#key-access-bip44-1-0');
|
||||||
await driver.clickElement({
|
await driver.clickElement({
|
||||||
text: 'Confirm',
|
text: 'Confirm',
|
||||||
@ -79,7 +82,10 @@ describe('Test Snap bip-44', function () {
|
|||||||
// click send inputs on test snap page
|
// click send inputs on test snap page
|
||||||
windowHandles = await driver.waitUntilXWindowHandles(1, 1000, 10000);
|
windowHandles = await driver.waitUntilXWindowHandles(1, 1000, 10000);
|
||||||
await driver.switchToWindowWithTitle('Test Snaps', windowHandles);
|
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');
|
await driver.clickElement('#sendBip44Test');
|
||||||
|
|
||||||
// check the results of the public key test
|
// check the results of the public key test
|
||||||
|
Loading…
Reference in New Issue
Block a user