-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix(background): clear sessions on page reload #851
Conversation
Extension builds preview
|
await page.evaluate(() => { | ||
window.addEventListener('monetization', monetizationCallback); | ||
await page.addInitScript({ | ||
content: `window.addEventListener('monetization', monetizationCallback)`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addInitScript
will be survive across page.reload
and navigation (exposeFunction
also survives such navigations), so we don't need to add listener again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test-e2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test-e2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test-e2e
This reverts commit 3d588a2.
|
||
const walletAddressUrl = process.env.TEST_WALLET_ADDRESS_URL; | ||
|
||
test.describe('should not pay immediately when overpaying', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spent the last couple of minutes looking for a test that goes through this flow without realizing that I already went through it. PEBCAK 🙄
Context
Closes #850
Reopens #819
Part of #610
Changes proposed in this pull request
Revert #831, add tests for page reload, sessions & overpaying, mark tests that were fixed by #831 as failing.