def step_impl(context): for i in range(1, 4): actual = FinancialPeriod.objects.get(financial_period_code=i) actual.actual_loaded = True actual.save() create_test_user(context) context.browser.get( f'{context.base_url}/forecast/edit/{TEST_COST_CENTRE_CODE}/')
def step_impl(context): create_test_user(context) context.browser.get( f'{context.base_url}/forecast/edit/{TEST_COST_CENTRE_CODE}/') WebDriverWait(context.browser, 5000).until( ec.presence_of_element_located((By.ID, "select_row_0"))) april_value = context.browser.find_element_by_id("id_0_1").get_attribute( 'innerHTML') assert april_value == "0" first_select = context.browser.find_element_by_id("select_row_0") first_select.click()
def step_impl(context): create_test_user(context) context.browser.get( f'{context.base_url}/forecast/edit/{TEST_COST_CENTRE_CODE}/') WebDriverWait(context.browser, 5000).until(ec.presence_of_element_located( (By.ID, "id_0_6"))) sept_cell = context.browser.find_element_by_id("id_0_6") action_chains = ActionChains(context.browser) action_chains.double_click(sept_cell).perform() sept_input = WebDriverWait(context.browser, 5000).until( ec.presence_of_element_located((By.ID, "id_0_6_input"))) action_chains = ActionChains(context.browser) action_chains.double_click(sept_input).perform() sept_input.send_keys("1") sept_input.send_keys("0") sept_input.send_keys("0") sept_input.send_keys("0") sept_input.send_keys("0")
def step_impl(context): create_test_user(context) context.browser.get( f'{context.base_url}/forecast/edit/{TEST_COST_CENTRE_CODE}/')
def step_impl(context): create_test_user(context) context.browser.get(f'{context.base_url}/')