1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

[E2E] Change to replace confirm snap to dialog snap (#17146)

This commit is contained in:
Bowen Sanders 2023-01-12 06:29:29 -08:00 committed by GitHub
parent d468739ff0
commit 1b62a773b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,3 @@
module.exports = {
TEST_SNAPS_WEBSITE_URL: 'https://metamask.github.io/test-snaps/4.4.1/',
TEST_SNAPS_WEBSITE_URL: 'https://metamask.github.io/test-snaps/4.5.0/',
};

View File

@ -31,9 +31,9 @@ describe('Test Snap Installed', function () {
// navigate to test snaps page and connect
await driver.openNewPage(TEST_SNAPS_WEBSITE_URL);
await driver.delay(1000);
const confirmButton = await driver.findElement('#connectConfirmSnap');
const confirmButton = await driver.findElement('#connectDialogSnap');
await driver.scrollToElement(confirmButton);
await driver.clickElement('#connectConfirmSnap');
await driver.clickElement('#connectDialogSnap');
await driver.delay(1000);
// switch to metamask extension and click connect
@ -117,7 +117,7 @@ describe('Test Snap Installed', function () {
await driver.delay(1000);
assert.equal(
await result.getText(),
'npm:@metamask/test-snap-confirm, npm:@metamask/test-snap-error',
'npm:@metamask/test-snap-dialog, npm:@metamask/test-snap-error',
);
},
);