Fix card tests
This commit is contained in:
parent
a64e2286d5
commit
b67f3062fe
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ class CardTest(BaseTestCase):
|
|||
c = Card(Conversation.main + " ")
|
||||
self.assert_text(title, c.title)
|
||||
self.assert_text(destination, c.destination)
|
||||
self.assertIn('_img', self.get_image_url(c.image + ' img'))
|
||||
self.assertIn('/pic/', self.get_image_url(c.image + ' img'))
|
||||
if len(description) > 0:
|
||||
self.assert_text(description, c.description)
|
||||
if large:
|
||||
|
@ -99,7 +99,7 @@ class CardTest(BaseTestCase):
|
|||
c = Card(Conversation.main + " ")
|
||||
self.assert_text(title, c.title)
|
||||
self.assert_text(destination, c.destination)
|
||||
self.assertIn('_img', self.get_image_url(c.image + ' img'))
|
||||
self.assertIn('/pic/', self.get_image_url(c.image + ' img'))
|
||||
self.assert_element_visible('.card-overlay')
|
||||
if len(description) > 0:
|
||||
self.assert_text(description, c.description)
|
||||
|
|
Loading…
Reference in a new issue