Skip to content

Commit d525aaa

Browse files
committed
Add "Assert text not visible" to Behave-BDD steps
1 parent 2cba0c8 commit d525aaa

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

sbase/steps.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,3 +586,21 @@ def deferred_assert_exact_text(context, text, selector):
586586
def process_deferred_asserts(context):
587587
sb = context.sb
588588
sb.process_deferred_asserts()
589+
590+
591+
@step("Assert text not visible '{text}' in '{selector}'")
592+
@step('Assert text not visible "{text}" in "{selector}"')
593+
@step("Assert text not visible '{text}' in \"{selector}\"")
594+
@step('Assert text not visible "{text}" in \'{selector}\'')
595+
def assert_text_not_visible_in_element(context, text, selector):
596+
sb = context.sb
597+
text = normalize_text(text)
598+
sb.assert_text_not_visible(text, selector)
599+
600+
601+
@step("Assert text not visible '{text}'")
602+
@step('Assert text not visible "{text}"')
603+
def assert_text_not_visible(context, text):
604+
sb = context.sb
605+
text = normalize_text(text)
606+
sb.assert_text_not_visible(text)

0 commit comments

Comments
 (0)