Testcafe: Does withRole restore localStorage?

Created on 27 Apr 2017  路  7Comments  路  Source: DevExpress/testcafe

Wondering if the new withRole feature restores items in localStorage? I'm noticing that with jwt based authentication where access tokens are stored in localStorage, session are not properly restored.

client server Auto-locked API hammerhead enhancement

Most helpful comment

Hi @astanciu,

We plan to implement this in one of the next two releases.

All 7 comments

@astanciu We thought about this scenario, but decided to postpone local storage sandboxing implementation for Roles. Now when there is a demand for the feature, I'll add it to the planned.

@churkin What we need from hammerhead side to implement it?

+1 for this. As it stands, unless I'm missing something, I cannot find a way to run multiple tests within 1 fixture w/o each test needing to do its own login. Alternatively, it would be great if the tests within a fixture would share the same session

@inikulin All is ready, we just need to add backupStarage and restoreStorage methods to the hammeread's API

any updates here? Is this something that will happen, and if so, is there a rough timeline?

Hi @astanciu,

We plan to implement this in one of the next two releases.

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

Was this page helpful?
0 / 5 - 0 ratings