@world.absorb
def create_unit_from_course_outline():
 css_selectors = ['.outline-subsection .expand-collapse', '.outline-subsection .button-new']
 for selector in css_selectors:
  world.css_click(selector)
 world.wait_for_mathjax()
 world.wait_for_xmodule()
 world.wait_for_loading()
 assert world.is_css_present('ul.new-component-type')

@ world . absorb def create_unit_from_course_outline ( ) : css_selectors = [ '.outline-subsection .expand-collapse' , '.outline-subsection .button-new' ] for selector in css_selectors : world . css_click ( selector ) world . wait_for_mathjax ( ) world . wait_for_xmodule ( ) world . wait_for_loading ( ) assert world . is_css_present ( 'ul.new-component-type' )
expands the section and clicks on the new unit link .