Commit graph nitter/tests
Author SHA1 Message Date
Zed
530437167e Improve flaky tests 2026-08-09 00:15:58 +07:00
Zed
a39e17abbe Add embed test suite 2026-08-08 23:09:39 +07:00
Zed
3bc78801b3 Increase test reruns and timeout for proxy media 2026-07-11 07:54:00 +02:00
Zed
5100290f76 Speed up pytest with eager page loads 2026-07-11 04:37:13 +02:00
Zed
61246df9de Support Top, Latest, Media, and Lists search
Fixes #1335
2026-07-08 18:56:12 +02:00
Zed
6b86aaa27f Triple pytest timeout multiplier for cold loads 2026-07-08 00:11:52 +02:00
Zed
2f07fa6151 Sort replies by relevance, recency, or likes
Fixes #1336
2026-07-08 00:11:52 +02:00
Zed
7f7092fbf5 Support captions in articles
Fixes #1418
2026-07-01 00:53:16 +02:00
Zed
55a331cc50 Add followers and following pages
Fixes #187
2026-06-21 06:12:24 +02:00
Zed
9d16db8903 Fix video test flakiness from HLS cookie leakage
Clear hlsPlayback cookie before video_m3u8 tests to ensure consistent
state regardless of test execution order. The Space tests set this
cookie which can persist and break video tests when they run after.
2026-06-20 18:37:07 +02:00
Zed
327e0161f1 Update thread test again 2026-06-20 18:14:12 +02:00
Zed
57d831f82a Update thread test 2026-06-20 17:51:47 +02:00
Zed
96a850c963 Add Space tests and fix media test selectors 2026-06-19 22:02:24 +02:00
Zed
44b2f096f6 Fix SSRF in /video proxy and API JSON injection
Validate the target host on the /video media route with
isTwitterUrl() (mirroring /pic) and reject non-http(s) schemes,
and stop the media proxy following redirects off the validated
host. JSON-escape user-controlled GraphQL cursors and build id
variables with packedjson so untrusted input can't break out of
the query. Warn on startup when the insecure default hmacKey is
in use.

Fixes #1411
2026-06-18 15:01:48 +02:00
Zed
7b27c2c629 Add support for Communities
Fixes #1270
2026-06-18 13:32:20 +02:00
Zed
35882ed88d Add Twitter Article rendering
Fixes #646
2026-06-16 15:47:13 +02:00
Zed
63891a04ff Update tests 2026-06-10 06:20:08 +02:00
Zed
fb9107cff6 Fix crash on malformed request paths 2026-06-08 06:14:18 +02:00
Zed
c956f7c373 Add /<acc>/about tests 2026-06-05 23:54:39 +02:00
Zed
083d65a8cf Update tests 2026-06-05 22:26:41 +02:00
Zed
74f5ff8acc Fix thread test 2026-04-16 02:46:43 +02:00
Zed
7ce29bd8f1 Add new media grid and gallery views
Fixes #199
Fixes #1342
2026-03-15 09:31:55 +01:00
Zed
0fefcf9917 Update gif class in tests 2026-03-13 06:19:09 +01:00
Zed
95a9ee8dc5
Update and speed up GitHub workflows (#1368)
* Update actions and switch to GitHub runners

* Bump workflow Python version to 3.14

* Reuse nitter build for integration test

* Add missing libpcre3 installation to workflow

* Consolidate workflow runtime deps install

* Make nitter binary executable

* Run nimble md and scss simultaneously in workflow

* Run tests with 4 workers in workflow

* Rerun failing integration tests

* Bump integration test workers to 5

* Improve python dep install and run less workers

* Use native GitHub Actions Redis service

* Lower integration test workers to 2

* Switch to poetry to cache venv

* Ensure poetry is installed before setup-python

* Fix poetry sync command

* Switch back to 3 workers

* Cache poetry install

* WIP

* WIP

* Fix poetry/pipx caching

* Speed up integration test significantly

* WIP

* Cleanup
2026-02-19 06:56:20 +01:00
Zed
7734d976f7 Add username validation
Fixes #1317
2025-11-30 04:12:38 +01:00
Zed
31d210ca47
Add experimental x-client-transaction-id support (#1324)
* Add experimental x-client-transaction-id support

* Remove broken test
2025-11-29 01:13:08 +01:00
Zed
bf36fc471b Update tests 2025-11-16 06:04:46 +01:00
Zed
bc38315d12 Fix tests 2025-02-05 20:19:18 +01:00
Zed
06ab1ea2e7 Enable disabled tests 2023-11-15 11:11:56 +00:00
Zed
c2819dab44 Fix #1106
Closes #831
2023-11-15 11:11:53 +00:00
Zed
623424f516 Fix outdated test 2023-11-01 04:52:44 +00:00
Zed
ae9fa02bf5 Switch to TweetDetail for tweets 2023-08-25 16:28:30 +02:00
Zed
d7ca353a55
Disable photo rail test 2023-08-08 02:49:58 +02:00
Zed
54e6ce14ac Simplify photo rail test 2023-08-08 02:35:43 +02:00
Zed
967f5e50f9 Update and disable some tests 2023-08-08 02:21:40 +02:00
Zed
50f821dbd8 Use search instead of old timeline endpoint 2023-07-22 03:22:13 +02:00
Zed
0bc3c153d9
Fix everything (#927)
* Switch bearer token and endpoints, update parser

* Enable user search, disable tweet search

* Disable multi-user timelines for now

* Fix parsing of pinned tombstone
2023-07-10 11:25:34 +02:00
Zed
b516ec367b Remove outdated tweet from card test 2023-05-20 00:59:34 +02:00
Zed
b67f3062fe Fix card tests 2023-04-21 23:33:52 +02:00
Zed
1ac389e7c7
GraphQL timeline (#812)
* Update deps

* Replace profile timeline with GraphQL endpoint

* Update GraphQL endpoint versions

* Use GraphQL for profile media tab

* Fix UserByRestId request

* Improve routing, fixes #814

* Fix token pool JSON

* Deduplicate GraphQL timeline endpoints

* Update list endpoints

* Use GraphQL for list tweets

* Remove debug leftover

* Replace old pinned tweet endpoint with GraphQL

* Validate tweet ID

* Minor token handling fix

* Hide US-only commerce cards

* Update config example

* Remove http pool and gzip from token pool

* Support tombstoned tweets in threads

* Retry GraphQL timeout errors

* Remove unnecessary 401 retry

* Remove broken timeout retry

* Update karax, use new bool attribute feature

* Update card test

* Fix odd edgecase with broken retweets

* Replace search endpoints, switch Bearer token

* Only parse user search if it's a list

* Fix quoted tweet crash

* Fix empty search query handling

* Fix invalid user search errors again
2023-04-21 14:41:30 +02:00
Zed
95893eedaa
Add actions workflow to run Selenium tests (#818) 2023-03-28 17:36:48 +02:00
Zed
aea884c48e Deduplicate note tweet parsing 2023-03-03 21:27:06 +01:00
Zed
2751504d2f Fix crash on unavailable tweets 2023-02-25 18:25:02 +01:00
Zed
310b0ab9a1 Update test 2022-11-27 16:00:16 +01:00
Zed
778c6c64cb Use a different quote for testing 2022-06-04 02:26:43 +02:00
Zed
6c83e87292 Update outdated tests 2022-06-04 01:00:44 +02:00
Zed
a98cf9245a Fix outdated tests 2022-05-13 19:20:34 +02:00
Zed
2536370cd7 Minor fixes, update tests 2022-04-01 17:56:55 +02:00
Zed
51ae076ea0 Rearchitect profile, support pins, Profile -> User 2022-01-23 07:23:09 +01:00
Zed
29a53de691 Update test to reflect layout change 2022-01-20 06:03:08 +01:00