Files
django-dav-events/dav_auth/tests/test_screenshots.py

20 lines
630 B
Python

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