UPD: dav_auth: tests!
This commit is contained in:
19
dav_auth/tests/test_screenshots.py
Normal file
19
dav_auth/tests/test_screenshots.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from django.test import tag
|
||||
from django.urls import reverse
|
||||
from selenium.webdriver.common.keys import Keys
|
||||
|
||||
from dav_base.tests.generic import skip_unless_tag_option, ScreenshotTestCase
|
||||
|
||||
|
||||
#@skip_unless_tag_option()
|
||||
#@tag('screenshots')
|
||||
class TestCase(ScreenshotTestCase):
|
||||
def test_some(self):
|
||||
c = self.selenium
|
||||
c.get(self.complete_url('/'))
|
||||
link = c.find_element_by_css_selector('#login-widget a')
|
||||
link.click()
|
||||
self.save_screenshot('login-form')
|
||||
link = c.find_element_by_link_text('Passwort vergessen?')
|
||||
link.click()
|
||||
self.save_screenshot('reset-password-form')
|
||||
Reference in New Issue
Block a user