Add Space tests and fix media test selectors

This commit is contained in:
Zed 2026-06-19 22:00:40 +02:00
commit 96a850c963
3 changed files with 128 additions and 14 deletions

View file

@ -1,4 +1,5 @@
from parameterized import parameterized
import pytest
from base import BaseTestCase, Conversation
@ -8,17 +9,10 @@ thread = [
[],
"Based",
["Crystal", "Julia"],
[["For", "Then"], ["yeah,"]],
[["yeah,"], ["For", "Then"]],
],
["octonion/status/975254452625002496", ["Based"], "Crystal", ["Julia"], []],
["octonion/status/975256058384887808", ["Based", "Crystal"], "Julia", [], []],
[
"gauravssnl/status/975364889039417344",
["Based", "For", "Then", "Okay,", "Python"],
"Speed",
[],
[["Java", "Coding", "I", "You"], ["JAVA!"]],
],
[
"d0m96/status/1141811379407425537",
[],
@ -48,6 +42,7 @@ class ThreadTest(BaseTestCase):
self.assert_equal(tweets[i], text)
@parameterized.expand(thread)
@pytest.mark.flaky(reruns=3)
def test_thread(self, tweet, before, main, after, replies):
self.open_nitter(tweet)
self.assert_element_visible(Conversation.main)