1 # -*- coding: utf-8 -*-
\r
3 # This file is part of MIL/PEER, licensed under GNU Affero GPLv3 or later.
\r
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
\r
6 from tests.integration.base import SeleniumTestCase
\r
7 from django.utils.translation import ugettext as _
\r
10 class SmokeTest(SeleniumTestCase):
\r
12 def test_add_book(self):
\r
13 page = self.get_main_page()
\r
14 page.select_tab(_('All'))
\r
15 assert page.tab.visible_books_count == 0
\r
17 page.select_tab(_('Add'))
\r
18 page.tab.put_title('Test title')
\r
19 page.tab.put_text('Test text')
\r
21 page.select_tab(_('All'))
\r
22 assert page.tab.visible_books_count == 1
\r