Skip to content

Commit

Permalink
[MV3] Fix e2e encrypt-decrypt test for MV3 test build (#16264)
Browse files Browse the repository at this point in the history
* Fix e2e encrypt-decrypt test for mv3 build

* Remove unnecessary await~
  • Loading branch information
seaona authored Oct 27, 2022
1 parent f03b3a8 commit d452613
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/e2e/tests/encrypt-decrypt.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ describe('Encrypt Decrypt', function () {

// Verify message in MetaMask Notification
await driver.clickElement({ text: 'Decrypt message', tag: 'div' });
const notificationMessage = await driver.findElement(
'.request-decrypt-message__message-text',
);
assert.equal(await notificationMessage.getText(), message);
const notificationMessage = await driver.isElementPresent({
text: message,
tag: 'div',
});
assert.equal(notificationMessage, true);
await driver.clickElement({ text: 'Decrypt', tag: 'button' });

// Verify message in Test Dapp
Expand Down

0 comments on commit d452613

Please sign in to comment.