Files
muninn/sidecars/reddit-post
Doar MihaiandClaude Sonnet 5 f794a5ae83 docs: annotate verified vs unverified selectors, drop redundant clicks
Addresses reviewer's minor findings on the prior fix commit: makes the
screenshot-verified/unverified boundary explicit in code comments so it
travels with the file rather than living only in commit messages, and
removes redundant .click() calls before .fill() (fill() already focuses).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-18 18:40:54 +03:00
..

Reddit Post Sidecar

A Playwright acceptance test that logs into Reddit with supplied credentials and creates a text post in a given subreddit.

One-time setup

cd sidecars/reddit-post
npm install
npx playwright install chromium

Usage

./run.sh --username=YOUR_USERNAME --password=YOUR_PASSWORD \
  --subreddit=test --title="Hello" --body="Post body text" [--headed]

Prints a single JSON line to stdout and exits 0 on success, exits 1 on failure:

{"success": true, "url": "https://www.reddit.com/r/test/comments/.../"}
{"success": false, "error": "Login did not complete — possible CAPTCHA or 2FA prompt"}