Skip to content

test: simplify playwright storage access in persistence tests#451

Merged
DMartens merged 1 commit into
mainfrom
test/simplify-playwright-webstorage-tests
Jun 22, 2026
Merged

test: simplify playwright storage access in persistence tests#451
DMartens merged 1 commit into
mainfrom
test/simplify-playwright-webstorage-tests

Conversation

@Pixel998

Copy link
Copy Markdown
Contributor

Prerequisites checklist

AI acknowledgment

  • I did not use AI to generate this PR.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

What is the purpose of this pull request?

Playwright v1.61.0 adds a new WebStorage API via page.localStorage and page.sessionStorage for reading and writing storage on the current origin.

This PR uses that API to simplify our persistence e2e tests and avoid unnecessary page.evaluate() calls for localStorage access.

What changes did you make? (Give an overview)

Replaced localStorage reads, writes, and removals with page.localStorage.getItem(), setItem(), and removeItem(). Also simplified hash inspection by reading from page.url().

Related Issues

Is there anything you'd like reviewers to focus on?

@netlify

netlify Bot commented Jun 22, 2026

Copy link
Copy Markdown

Deploy Preview for eslint-code-explorer ready!

Name Link
🔨 Latest commit 9ed6f28
🔍 Latest deploy log https://app.netlify.com/projects/eslint-code-explorer/deploys/6a3955de08d3b20008bcd132
😎 Deploy Preview https://deploy-preview-451--eslint-code-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@eslintbot eslintbot added this to Triage Jun 22, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in Triage Jun 22, 2026

@DMartens DMartens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes LGTM, thanks.

@DMartens DMartens merged commit f2e9f64 into main Jun 22, 2026
10 checks passed
@DMartens DMartens deleted the test/simplify-playwright-webstorage-tests branch June 22, 2026 21:13
@github-project-automation github-project-automation Bot moved this from Needs Triage to Complete in Triage Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

3 participants