Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setLocalStorage command #30921

Open
Curs3W4ll opened this issue Jan 21, 2025 · 1 comment
Open

setLocalStorage command #30921

Curs3W4ll opened this issue Jan 21, 2025 · 1 comment
Labels
topic: localStorage type: feature New feature that does not currently exist

Comments

@Curs3W4ll
Copy link

What would you like?

We already have a setCookie function, why not having a setLocalStorage one?, with the same goal but working with local storage

In the same topic, why does the getCookies function automatically gets cookies of the current domain (deducing the current domain) and not the getAllLocalStorage one?

Why is this needed?

Easier testing

Other

No response

@jennifer-shehane jennifer-shehane changed the title setLocaleStorage setLocalStorage command Jan 22, 2025
@jennifer-shehane
Copy link
Member

Here's an example of how to set it. Get the correct window and set it: https://docs.cypress.io/api/commands/getalllocalstorage#Get-all-localStorage

We don't have a getLocalStorage command that is only scoped to the current domain. We just didn't build it.

@jennifer-shehane jennifer-shehane added type: feature New feature that does not currently exist topic: localStorage labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: localStorage type: feature New feature that does not currently exist
Projects
None yet
Development

No branches or pull requests

2 participants