Is there any option to skip step during an executing scenario in behave (Python). I have the following scenario:
Scenario: Opening and closing driver by clicking and sliding
When swipe right
Then drawer should appear
When swipe left
Then drawer should disappear
Given part is for Android # now only Android executes, iOS not
When click hamburger
Then drawer should appear
When click outside drawer
Then drawer should disappear
Right now I have some variable passed with context and I check if tit's true before each step like this:
@when('swipe right')
def step_slide_right(context):
dc = context.device_commands
if dc.check_if_this_is_the_platform(context.run_test_for):
dc.slide_right()
Is there any function to skip inside before_step(context,step)
like skip_step
, to not call if dc.check_if_this_is_the_platform(context.run_test_for):...
in each step.