Skip to content

e2e: console-noise guard (collect console.error / pageerror against an allowlist) #113

@Jaggob

Description

@Jaggob

Follow-up to #54. Add an opt-in check that fails specs when the browser logs unexpected console.error / pageerror / failed requests during a flow.

This plugin runs inside Nextcloud and alongside other apps, so the browser console carries a mix of our output and theirs. Watching it during the E2E flows is a cheap way to catch real integration regressions (our own errors, broken requests) that don't otherwise fail an assertion — as long as we deliberately ignore the noise that other software produces.

The guard therefore needs a maintained allowlist. A concrete entry to seed it with: Nextcloud's Text-app RichWorkspace logs a Tiptap unmount error on every Files page load (see #72), entirely unrelated to this app — that belongs on the ignore list from day one.

Scope

  • A fixture that attaches page.on('console') / page.on('pageerror') / failed-response listeners and asserts against an allowlist at test end.
  • Allowlist seeded with the known upstream entries (Tiptap RichWorkspace, etc.).
  • Opt-in per spec (or a global wrapper) so existing specs aren't destabilised.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttestsTest coverage work

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions