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