UPD: dav_auth: tests!

This commit is contained in:
2019-03-12 18:13:45 +01:00
parent b246a785b7
commit c39f09709b
8 changed files with 472 additions and 0 deletions

View 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')