<commit_before>from lettuce import world, step


@step('I fill in the registration form$')
def i_fill_in_the_registration_form(step):
    register_form = world.browser.find_by_css('form#register_form')
    register_form.find_by_name('email').fill('<EMAIL>')
    register_form.find_by_name('password').fill('<PASSWORD>')
    register_form.find_by_name('username').fill('robot-studio')
    register_form.find_by_name('name').fill('Robot Studio')
    register_form.find_by_name('terms_of_service').check()


@step('I press the Create My Account button on the registration form$')
def i_press_the_button_on_the_registration_form(step):
    register_form = world.browser.find_by_css('form#register_form')
    submit_css = 'button#submit'
    register_form.find_by_css(submit_css).click()


@step('I should see be on the studio home page$')
def i_should_see_be_on_the_studio_home_page(step):
    assert world.browser.find_by_css('div.inner-wrapper')<commit_msg>Fix signup test on ubuntu<commit_after>from lettuce import world, step
from common import *


@step('I fill in the registration form$')
def i_fill_in_the_registration_form(step):
    register_form = world.browser.find_by_css('form#register_form')
    register_form.find_by_name('email').fill('<EMAIL>')
    register_form.find_by_name('password').fill('<PASSWORD>')
    register_form.find_by_name('username').fill('robot-studio')
    register_form.find_by_name('name').fill('Robot Studio')
    register_form.find_by_name('terms_of_service').check()


@step('I press the Create My Account button on the registration form$')
def i_press_the_button_on_the_registration_form(step):
    submit_css = 'form#register_form button#submit'
    # Workaround for click not working on ubuntu
    # for some unknown reason.
    e = css_find(submit_css)
    e.type(' ')

@step('I should see be on the studio home page$')
def i_should_see_be_on_the_studio_home_page(step):
    assert world.browser.find_by_css('div.inner-wrapper')
{'fraction_non_alphanumeric': 0.11941056910569106, 'fraction_numerical': 0.0, 'mean_word_length': 6.265682656826568, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5891854', 'n_tokens_mistral': 659, 'n_tokens_neox': 641, 'n_words': 122}