Load session data into the current browser context, including cookies, local storage values, and IndexDB databases. The data should be formatted as a JSON object conforming to the schema described in the Save auth state step. After the load completes, the active tab will be refreshed.

It is highly recommended to use the output of the Save auth state step directly as input to this step instead of manually creating or manipulating a JSON object. In other words, in most cases the function specified for this step should simply be return env.X where X is the name of the variable holding the output of the Save auth state step.

If no session data or an empty object is passed, the browser context will be cleared of all session data instead. The currently active tab will subsequently be refreshed (all other tabs in the context are left unchanged). This can be useful for forcing a login instantaneously in the middle of a test.

Was this page helpful?