#NEWLINE# def scenario_no_dockerfile( user ) : #NEWLINE# #INDENT# driver = user . get_driver ( ) #NEWLINE# driver . get ( ( user . base_url + '/hub/login' ) ) #NEWLINE# user . log ( 'login' ) #NEWLINE# driver . find_element_by_id ( 'username_input' ) . clear ( ) #NEWLINE# driver . find_element_by_id ( 'username_input' ) . send_keys ( user . login ) #NEWLINE# driver . find_element_by_id ( 'password_input' ) . clear ( ) #NEWLINE# driver . find_element_by_id ( 'password_input' ) . send_keys ( user . password ) #NEWLINE# driver . find_element_by_id ( 'login_submit' ) . click ( ) #NEWLINE# user . wait_for_element_present ( By . ID , 'start' ) #NEWLINE# driver . find_element_by_id ( 'start' ) . click ( ) #NEWLINE# user . wait_for_element_present ( By . ID , 'repository_input' ) #NEWLINE# driver . find_element_by_id ( 'repository_input' ) . clear ( ) #NEWLINE# driver . find_element_by_id ( 'repository_input' ) . send_keys ( 'https://github.com/everware/runnable_examples' ) #NEWLINE# driver . find_element_by_xpath ( "//input[@value='Spawn']" ) . click ( ) #NEWLINE# user . log ( 'spawn clicked' ) #NEWLINE# user . wait_for_element_present ( By . ID , 'resist' ) #NEWLINE# text = "Something went wrong during building. Error: Your repo doesn't include Dockerfile" #NEWLINE# assert ( text in driver . page_source ) #NEWLINE# user . log ( 'correct, no dockerfile' )