Skip to content

Commit

Permalink
examples/material: slow mode, non-headless by cmdline options
Browse files Browse the repository at this point in the history
  • Loading branch information
xrg committed Oct 9, 2019
1 parent ed1417d commit 9a44f7d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion examples/material/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@

import logging
from behave_manners import site_setup
import time


def before_all(context):
site_setup(context, config='config.yaml')
extra_conf = {'browser': {} }
if context.config.userdata.get('no-headless', False):
extra_conf['browser']['headless'] = False
site_setup(context, config='config.yaml', extra_conf=extra_conf)


def after_step(context, step):
if context.config.userdata.get('slow', False):
time.sleep(1.0)

0 comments on commit 9a44f7d

Please sign in to comment.