1 # -*- coding: utf-8 -*-
\r
2 from tests.integration.base import SeleniumTestCase, _
\r
5 class SmokeTest(SeleniumTestCase):
\r
7 def test_add_book(self):
\r
8 user = self.create_super_user(do_login=True)
\r
10 page = self.get_main_page()
\r
11 page.select_tab(_('All'))
\r
12 assert page.tab.visible_books_count == 0
\r
14 page.select_tab(_('Add'))
\r
15 page.tab.put_title('Test title')
\r
16 page.tab.put_text('Test text')
\r
18 page.select_tab(_('All'))
\r
19 assert page.tab.visible_books_count == 1
\r