If I use the example in the docs the restore function of autoLogin always fails.
The docs state:
I.executeScript(() => localStorage.setItem('session_id', session), session);
Instead it should be
I.executeScript((session) => localStorage.setItem('session_id', session), session);