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:
parent
d468739ff0
commit
1b62a773b4
@ -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/',
|
||||
};
|
||||
|
@ -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',
|
||||
);
|
||||
},
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user