Skip to content

Commit

Permalink
fixed errors resulting from merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
bowensanders committed Oct 17, 2024
1 parent b0bdab2 commit a0bee08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 31 deletions.
20 changes: 2 additions & 18 deletions test/e2e/snaps/test-snap-txinsights-v2.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,23 +77,13 @@ describe('Test Snap TxInsights-v2', function () {
// switch back to MetaMask window
await driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog);

// wait for and click next
await driver.waitForSelector({
text: 'Next',
tag: 'button',
});
await driver.clickElement({
text: 'Next',
tag: 'button',
});

// wait for and click confirm and wait for window to close
await driver.waitForSelector({
text: 'Confirm',
text: 'Connect',
tag: 'button',
});
await driver.clickElementAndWaitForWindowToClose({
text: 'Confirm',
text: 'Connect',
tag: 'button',
});

Expand Down Expand Up @@ -167,12 +157,6 @@ describe('Test Snap TxInsights-v2', function () {
tag: 'button',
text: 'Activity',
});

// wait for transaction confirmation
await driver.waitForSelector({
css: '.transaction-status-label',
text: 'Confirmed',
});
},
);
});
Expand Down
16 changes: 3 additions & 13 deletions test/e2e/snaps/test-snap-txinsights.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,13 @@ describe('Test Snap TxInsights', function () {
// switch back to MetaMask window
await driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog);

// wait for and click next
// wait for and click next and wait for window to close
await driver.waitForSelector({
text: 'Next',
tag: 'button',
});
await driver.clickElement({
text: 'Next',
tag: 'button',
});

// wait for and click confirm and wait for window to close
await driver.waitForSelector({
text: 'Confirm',
text: 'Connect',
tag: 'button',
});
await driver.clickElementAndWaitForWindowToClose({
text: 'Confirm',
text: 'Connect',
tag: 'button',
});

Expand Down

0 comments on commit a0bee08

Please sign in to comment.