X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ff573698a8b017b1a70fafbfda44452b2c8d78c1..64def8585cd770750020addd02e959b2f9a9426f:/tests/integration/smoke_test.py diff --git a/tests/integration/smoke_test.py b/tests/integration/smoke_test.py new file mode 100644 index 00000000..fb29a73c --- /dev/null +++ b/tests/integration/smoke_test.py @@ -0,0 +1,18 @@ +from tests.integration.base import SeleniumTestCase, MainPage, _ + +class SmokeTest(SeleniumTestCase): + + def test_add_book(self): + user = self.create_super_user(do_login = True) + + page = self.get_main_page() + page.select_tab(_('All')) + assert page.tab.visible_books_count == 0 + + page.select_tab(_('Add')) + page.tab.put_title('Test title') + page.tab.put_text('Test text') + page.tab.submit() + page.select_tab(_('All')) + assert page.tab.visible_books_count == 1 + \ No newline at end of file