mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Improve flaky tests
This commit is contained in:
parent
a39e17abbe
commit
530437167e
2 changed files with 3 additions and 0 deletions
|
|
@ -291,6 +291,8 @@ class ArticleQuotedCardTest(BaseTestCase):
|
|||
|
||||
def test_quoted_card_has_cover_image(self):
|
||||
self.open_nitter(self.quoted_tweet)
|
||||
# Scroll to element to trigger lazy loading
|
||||
self.scroll_to('.quote .article-card .card-image img')
|
||||
self.assert_element_visible('.quote .article-card .card-image img')
|
||||
src = self.get_attribute('.quote .article-card .card-image img', 'src')
|
||||
self.assertIn('/pic/', src)
|
||||
|
|
|
|||
Loading…
Reference in a new issue