Skip to content

Option to disable logging failed requests during E2E tests #2572

Closed
ionic-team/ionic-framework
#29666

Description

@mihar-22

Stencil version: 1.16.0

I'm submitting a:

[ ] bug report
[X] feature request
[ ] support request

Current behavior:

Currently it defaults to logging errors to the console when requests abort/fail in E2E tests.

Expected behavior:

I'm writing tests for a video player and sometimes there are requests lingering at the end of my tests from buffering frames and other stuff. I'd like an option when creating newE2EPage to to stop the errors from logging.

Maybe an option to disable requests that were simply aborted req.failure()?.errorText === 'net::ERR_ABORTED' would be more specific?

Related code:

https://github.com/ionic-team/stencil/blob/b47093b2f86be777c39f79abc691a8a6d1ec50d7/src/testing/puppeteer/puppeteer-page.ts#L141

Activity

  1. added
    Resolution: Refine
    and removed on Jun 12, 2024
  2. christian-bromann commented on Jun 18, 2024

    @christian-bromann
    Member

    Hey @mihar-22 👋

    sorry for getting back to you with a 4 year delay 😆 but I raised a PR that will enable this capability.

  3. tanner-reits commented on Jun 26, 2024

    @tanner-reits
    Contributor

    This was included in today's v4.19.0 release!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: Refine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions