Rename publishable to approved, add profile option to approve by default.
[redakcja.git] / tests / integration / smoke_test.py
1 from tests.integration.base import SeleniumTestCase, MainPage, _\r
2 \r
3 class SmokeTest(SeleniumTestCase):\r
4 \r
5     def test_add_book(self):\r
6         user = self.create_super_user(do_login = True)\r
7         \r
8         page = self.get_main_page()\r
9         page.select_tab(_('All'))\r
10         assert page.tab.visible_books_count == 0\r
11         \r
12         page.select_tab(_('Add'))\r
13         page.tab.put_title('Test title')\r
14         page.tab.put_text('Test text')\r
15         page.tab.submit()\r
16         page.select_tab(_('All'))\r
17         assert page.tab.visible_books_count == 1\r
18