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

[MV3] Fix e2e encrypt-decrypt test for MV3 test build (#16264)

* Fix e2e encrypt-decrypt test for mv3 build

* Remove unnecessary await~
This commit is contained in:
seaona 2022-10-27 14:46:07 +02:00 committed by GitHub
parent f03b3a872c
commit d452613f71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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