---
title: "Discussion on \"How We Fixed Firefox's localStorage Race in Playwright: Two Navigation Helpers\" | Hashnode"
description: "Discussion on \"How We Fixed Firefox's localStorage Race in Playwright: Two Navigation Helpers\". TL;DR\nFirefox's addInitScript can race against page rendering when seeding localStorage for E2E tests. We fixed it by splitting navigation into two helpers: gotoPage (fast, commit) for interactive flows and gotoAgreementPage (reliable, domcontentload..."
url: "https://hashnode.com/posts/how-we-fixed-firefoxs-localstorage-race-in-playwright-two-navigation-helpers/699e006d8b7645510a03ab9c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How We Fixed Firefox's localStorage Race in Playwright: Two Navigation Helpers](https://papre.hashnode.dev/how-we-fixed-firefoxs-localstorage-race-in-playwright-two-navigation-helpers?utm_source=hashnode&utm_medium=feed)

TL;DR Firefox's addInitScript can race against page rendering when seeding localStorage for E2E tests. We fixed it by splitting navigation into two helpers: gotoPage (fast, commit) for interactive flows and gotoAgreementPage (reliable, domcontentload...

Feb 24 · 3 min read · papre.hashnode.dev  
Read the article

-   [#ethereum](https://hashnode.com/tag/ethereum)
-   [#playwright](https://hashnode.com/tag/playwright)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#web3](https://hashnode.com/tag/web3)

## Written by

[Christopher Sove](https://hashnode.com/@papre)

@papre

  
[View profile](https://hashnode.com/@papre)

Composable legal infrastructure. One clause at a time.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
