1 from tests.integration.base import SeleniumTestCase, MainPage, _
\r
3 class SmokeTest(SeleniumTestCase):
\r
5 def test_add_book(self):
\r
6 user = self.create_super_user(do_login = True)
\r
8 page = self.get_main_page()
\r
9 page.select_tab(_('All'))
\r
10 assert page.tab.visible_books_count == 0
\r
12 page.select_tab(_('Add'))
\r
13 page.tab.put_title('Test title')
\r
14 page.tab.put_text('Test text')
\r
16 page.select_tab(_('All'))
\r
17 assert page.tab.visible_books_count == 1
\r