Skip to content

chore: Use local storage over cookies for e2e #5694

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kyle-ssg
Copy link
Member

@kyle-ssg kyle-ssg commented Jul 2, 2025

Thanks for submitting a PR! Please check the boxes below:

  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Since we've found that Cookies have issues within E2E, it makes sense to just use localstorage.

How did you test this code?

E2E Passes!

@kyle-ssg kyle-ssg requested a review from a team as a code owner July 2, 2025 17:16
@kyle-ssg kyle-ssg requested review from Zaimwa9 and removed request for a team July 2, 2025 17:16
Copy link

vercel bot commented Jul 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2025 5:18pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2025 5:18pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Jul 2, 2025 5:18pm

@github-actions github-actions bot added front-end Issue related to the React Front End Dashboard chore labels Jul 2, 2025
Copy link
Contributor

github-actions bot commented Jul 2, 2025

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-5694 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-5694 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-5694 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-5694 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-5694 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-frontend:pr-5694 Finished ✅ Results

if (E2E) {
localStorage.removeItem(key, v)
} else {
require('js-cookie').remove(key, {
Copy link
Contributor

@emyller emyller Jul 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Being curious: can/should require('js-cookie') be cached to a reusable var before the try statement enters?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants