Files
devplacepy/tests/unit/services/bot/browser.py
T

30 lines
779 B
Python
Raw Normal View History

# retoor <retoor@molodetz.nl>
from devplacepy.services.bot.browser import NATIVE_FILL_TYPES, uses_native_fill
def test_uses_native_fill_for_date_widgets():
assert uses_native_fill("date")
assert uses_native_fill("DATE")
assert uses_native_fill("datetime-local")
assert uses_native_fill("month")
assert uses_native_fill("time")
assert uses_native_fill("week")
def test_uses_native_fill_skips_text_fields():
assert not uses_native_fill("text")
assert not uses_native_fill("email")
assert not uses_native_fill("password")
assert not uses_native_fill("")
def test_native_fill_types_are_the_date_family():
assert NATIVE_FILL_TYPES == {
"date",
"datetime-local",
"month",
"time",
"week",
}