Skip to content

Technical guide · Overview

Page status: HistoricalHistory group: Archives

NutsNews Web Offline E2E Fix

This patch updates the mocked public web flow test so it no longer assumes the mock article title is globally unique on the homepage.

Visual overview

Primary diagram

System map

This patch updates the mocked public web flow test so it no longer assumes the mock article title is globally unique on the homepage.

Render the repository-owned system map when you need it.

Diagram is not rendered yet.

View as text
NutsNews Web Offline E2E Fix

This patch updates the mocked public web flow test so it no longer assumes the mock article title is globally unique on the homepage.

flowchart TB
  accTitle: NutsNews Web Offline E2E Fix
  accDescr {
    This patch updates the mocked public web flow test so it no longer assumes the mock article title is globally unique on the homepage.
  }
  A["NutsNews Web Offline E2E Fix"] --> B["archive/README-NUTSNEWS-WEB-OFFLINE-E2E-FIX.md"]
  B --> C["Auto-generated placeholder diagram"]

NutsNews Web Offline E2E Fix

Fullscreen diagram view.

This patch updates the mocked public web flow test so it no longer assumes the mock article title is globally unique on the homepage.

The current homepage intentionally renders category sections. The same mock article can appear in the lead story and in multiple category sections, so Playwright strict mode fails when the test uses page.getByText(title) and that locator resolves to multiple visible elements.

  • Updated scripts/web_offline_e2e_regression.mjs to use the first visible matching title when verifying homepage/search rendering.
  • This keeps the test focused on the real requirement: at least one mock article is visible.
Terminal window
npm --prefix web run test:e2e:offline

or, if your package script is named differently, run the GitHub workflow command for the Web Offline E2E Regression.