forked from retoor/devplacepy
Add personal notes, DeepSearch history, backup offload, and gateway auth throttling
Also streamline the top navigation: drop the Tools dropdown, make Quizzes and Battles icon-only entries, and remove the Workspace, Containers and Editor entry points from the project detail page.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# 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",
|
||||
}
|
||||
Reference in New Issue
Block a user