when removing empty tags remove also empty links
[redakcja.git] / tests / integration / smoke_test.py
1 # -*- coding: utf-8 -*-\r
2 from tests.integration.base import SeleniumTestCase, _\r
3 \r
4 \r
5 class SmokeTest(SeleniumTestCase):\r
6 \r
7     def test_add_book(self):\r
8         user = self.create_super_user(do_login=True)\r
9 \r
10         page = self.get_main_page()\r
11         page.select_tab(_('All'))\r
12         assert page.tab.visible_books_count == 0\r
13 \r
14         page.select_tab(_('Add'))\r
15         page.tab.put_title('Test title')\r
16         page.tab.put_text('Test text')\r
17         page.tab.submit()\r
18         page.select_tab(_('All'))\r
19         assert page.tab.visible_books_count == 1\r