TirSystem/git-workflows: OpenGrep / opengrep (push) Skipped
TirSystem/git-workflows: Publish wiki / publish-wiki (push) Skipped
TirSystem/git-workflows: Sync GitHub mirror metadata / sync-metadata (push) Skipped
TirSystem/git-workflows: Publish accepted milestones / publish (push) Skipped
TirSystem/git-workflows: Validate / validate (push) Skipped
TirSystem/git-workflows: Validate / validate (pull_request) Successful in 42s
TirSystem/git-workflows: OpenGrep / opengrep (pull_request) Successful in 4m48s
Selenium bot (src/tinder_bot) for the Day 50 lecture steps, unit tests, a mock-site Docker e2e harness for screenshots, and README plus wiki in English, Danish and Bahasa Malaysia.
21 lines
822 B
Markdown
21 lines
822 B
Markdown
# End-to-end run against a mock TinDog
|
|
|
|
`site/` is a static mock of the TinDog flow (home, login modal, fake Facebook
|
|
popup, location / notifications / cookies pop-ups, cards with a 2 s loading
|
|
delay, a match modal every 4th like, stop at 20 likes). `run_e2e.py` serves it
|
|
with `http.server`, drives the bot with headless Chrome and saves one
|
|
screenshot per step (`01-home.png` ... `09-done.png`).
|
|
|
|
Run it in Docker only, never on the host desktop. From the project root:
|
|
|
|
```bash
|
|
docker build -f tests/e2e/Dockerfile -t tinder-e2e .
|
|
docker run --rm -v "$PWD/e2e-out:/out" tinder-e2e
|
|
```
|
|
|
|
The screenshots appear in `e2e-out/`. The exit code is 0 when 20 likes were
|
|
given.
|
|
|
|
If Chrome fails to start as root in the container, `create_driver` already
|
|
passes `--no-sandbox`; add `--shm-size=1g` to `docker run` if it crashes.
|