import click from '../utils/click'; import stable from '../utils/stable'; import type from '../utils/type'; import showCypress from './showCypress'; import showMetaMask from './showMetaMask'; /** * Unlock the MetaMask wallet. * @param {string} password The MetaMask password. * @returns {Promise} */ export default async function unlockMetaMask(password: string): Promise { await showMetaMask(); await stable(); await type('.unlock-page__form #password', password); await click('.unlock-page button'); await showCypress(); return true; }