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:
parent
f03b3a872c
commit
d452613f71
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user