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

Add block-network-request command #600

Commits on Apr 4, 2024

  1. Add block-network-request command

    This provides a reasonable way to simulate a flakey network,
    busted deploy, or ad blocker. It lets us actively block a
    network request that the page makes.
    
        // to simulate JS that is enabled, but fails to load
        block-network-request: "*.js"
    
    This is the simplest case, but is not the only useful one.
    It can also block specific files, and it can stack:
    
        block-network-request: "*/search-index.js"
        block-network-request: "*/search.js"
    
    Once a block list is added, there's no way to remove it.
    Flakey network tests will probably be in separate test files,
    so that shouldn't be a serious weakness.
    notriddle committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    c5bfcde View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fdb885d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4ea8c41 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0e79e04 View commit details
    Browse the repository at this point in the history