Skip to content

fix(wggesucht): read title and address from the relaunched result cards - #503

Merged
orangecoding merged 1 commit into
orangecoding:masterfrom
yadem01:fix/wggesucht-card-selectors
Nov 1, 2026
Merged

orangecoding merged 1 commit into
orangecoding:masterfrom
yadem01:fix/wggesucht-card-selectors

Conversation

@yadem01

@yadem01 yadem01 commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

WG-Gesucht renamed the classes on its result cards: the headline is now .card-title-text and the "2-Zimmer-Wohnung · Berlin Treptow · Scheiblerstraße" line is .card-details-text (formerly .ad-title and .ad-subtitle). Price, size and image still matched, so jobs kept finding listings, but every listing came through with an empty title and no address. Without an address nothing gets geocoded, so WG-Gesucht listings never appear on the map and pass every area filter, because listings without coordinates are kept.

wgGesuchtSearchResults.test.js stayed green only because the recorded search page predated the relaunch. With a freshly recorded page it fails ({ field: 'title', missing: 26 }), and with the two selectors changed it passes.

Changes:

  • lib/provider/wgGesucht.js: title → .card-title-text, details/description → .card-details-text
  • test/testFixtures/wgGesucht.html, wgGesucht_detail.html: re-recorded (search page via yarn test:download-fixtures wgGesucht; detail page of an advert that is on that search page)
  • test/provider/byUrl/wgGesucht.test.js, test/provider/priceTracking.test.js: now pin advert 14247424 (799 €, 20 m²) instead of 14245211, which is no longer on the recorded search page

Side note, not touched here: the detail page's h1.detailed-view-title includes the English title of bilingual ads, so fetchListingByUrl returns a longer title than the search card for those. That is why I picked a monolingual advert for the detail fixture.

Related issue

none

AI disclosure (required)

  • ai:none - I wrote this myself. No AI generated code, text or commit messages.
  • ai:assisted - AI helped with parts of it (autocomplete, refactoring, tests, docs). I reviewed and understand every line.
  • ai:generated - AI produced most or all of this PR. I reviewed it, but it is largely machine written.

Which AI: Claude Code, Claude Opus 5.5

How much: the whole diff (selector fix, fixture refresh, test updates) and this description; I found the bug in my own instance (WG-Gesucht listings without address/coordinates) and reviewed the changes.

Why: tracing why my WG-Gesucht listings had no coordinates led straight to the selectors, so the fix was quicker to do with the agent that found it.

Checklist

  • yarn test:offline passes (or yarn test if the change touches a live provider)
  • yarn lint and yarn format:check pass
  • The change is useful for everybody, not a custom tweak for my own setup
  • I have read and answered the AI disclosure above honestly

🤖 Generated with Claude Code

WG-Gesucht renamed the classes on its result cards: the headline is now
`.card-title-text` and the "2-Zimmer-Wohnung · Berlin Treptow · Straße"
line is `.card-details-text`, formerly `.ad-title` and `.ad-subtitle`.
Price, size and image still matched, so jobs kept finding listings, but
every one of them came through with an empty title and no address. Without
an address nothing could be geocoded, so WG-Gesucht listings never showed
on the map and slipped past every area filter.

The recorded search page predated the relaunch, which is why
wgGesuchtSearchResults.test.js stayed green. Both fixtures are re-recorded;
the byUrl and price tracking tests now pin an advert that is on the new
search page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@orangecoding
orangecoding merged commit 1b06900 into orangecoding:master Nov 1, 2026
3 checks passed
dedo1911 added a commit to CappyT/fredy that referenced this pull request Nov 2, 2026
Brings in upstream's wg-gesucht fix for the relaunched result cards
(orangecoding#503). The merge had no conflicts and touches no fork file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants