ChainSafe / dappeteer

[DEPRECATED]🏌🏼‍E2E testing for dApps using Puppeteer + MetaMask
Other
491 stars 152 forks source link

feat: speedup initializing MetaMask #238

Closed BeroBurny closed 1 year ago

BeroBurny commented 1 year ago

Short description of work done Implement methods to backup user profile data and load the browser from updated data to speed up the initial start time of dappateer

PR Checklist

Closes #120

BeroBurny commented 1 year ago

Currently is draft as i need to write documentation for a new feature but code can be check before it

cc @irubido @Lykhoyda @mpetrunic

Lykhoyda commented 1 year ago

I have to ask a nerdy question, what is the time difference between using the implemented method and without it ? 🤓

BeroBurny commented 1 year ago

I have to ask a nerdy question, what is the time difference between using the implemented method and without it ? nerd_face

result from test

  userData
    MetaMask
      ✔ should successfully store user data (20185ms) note: there is 1sec pause
      ✔ should successfully launch from custom user folder (8899ms)
    Flask
      ✔ should successfully store user data (21544ms) note: there is 1sec pause
      ✔ should successfully launch from custom user folder (9719ms)
    Predefined
      ✔ should successfully launch project's default MetaMask (8959ms)
      ✔ should successfully launch project's default Flask (10046ms)