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

test: fix flaky tests in webContents.navigationHistory #41705

Merged

Conversation

alicelovescake
Copy link
Contributor

@alicelovescake alicelovescake commented Mar 26, 2024

Description of Change

Problem:
Flaky tests in navigationHistory because the tests load real URLs, meaning they’d fail if e.g. the website hiccups or there’s an internet connection issue.

This PR:

  • Replaces all real urls in tests with urls with data: schema which has page content encoded in the url and does not need network connection to load

cc @codebytere

Checklist

  • PR description included and stakeholders cc'd
  • npm test passes
  • tests are changed or added

Release Notes

Notes: none

@alicelovescake alicelovescake changed the title test: fix flaky tests by replacing real urls with data urls test: fix flaky tests in webContents.navigationHistory Mar 26, 2024
@deepak1556 deepak1556 merged commit c57ce31 into electron:main Mar 27, 2024
24 checks passed
Copy link

release-clerk bot commented Mar 27, 2024

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants