<commit_before>from selenium.webdriver.support.ui import Select

from django.utils import timezone

from functional_tests.base import BrowserTest


class CashActivityTest(BrowserTest):

    def test_enter_cash_activity_credit(self):
        # enter dashboard
        self.browser.get(self.live_server_url)
        self.assertEqual('Welcome to Cashflow', self.browser.title)
        cash_menu = self.browser.find_element_by_link_text('Cash')
        cash_menu.click()

        # enter cash app index page
        self.assertEqual('This is the cash application', self.browser.title)
        new_cash_activity = self.browser.find_element_by_link_text('New cash ativity')
        new_cash_activity.click()

        # enter input page  for cash activity
        self.assertEqual('Enter your cash activity here', self.browser.title)
        header_page = self.browser.find_element_by_tag_name('h1')
        self.assertEqual('Enter your cash activity here', header_page.text)

        # fill cash activity form & submit
        new_cash_activity_form = self.browser.find_element_by_id('cash_activity_form')
        activity_description = new_cash_activity_form.find_element_by_name('description')
        activity_description.send_keys('Buy laptop')<commit_msg>fix typo hyperlink text search<commit_after>from selenium.webdriver.support.ui import Select

from django.utils import timezone

from functional_tests.base import BrowserTest


class CashActivityTest(BrowserTest):

    def test_enter_cash_activity_credit(self):
        # enter dashboard
        self.browser.get(self.live_server_url)
        self.assertEqual('Welcome to Cashflow', self.browser.title)
        cash_menu = self.browser.find_element_by_link_text('Cash')
        cash_menu.click()

        # enter cash app index page
        self.assertEqual('This is the cash application', self.browser.title)
        new_cash_activity = self.browser.find_element_by_link_text('New cash activity')
        new_cash_activity.click()

        # enter input page  for cash activity
        self.assertEqual('Enter your cash activity here', self.browser.title)
        header_page = self.browser.find_element_by_tag_name('h1')
        self.assertEqual('Enter your cash activity here', header_page.text)

        # fill cash activity form & submit
        new_cash_activity_form = self.browser.find_element_by_id('cash_activity_form')
        activity_description = new_cash_activity_form.find_element_by_name('description')
        activity_description.send_keys('Buy laptop')
{'fraction_non_alphanumeric': 0.0791765637371338, 'fraction_numerical': 0.000791765637371338, 'mean_word_length': 3.776937618147448, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6329863', 'n_tokens_mistral': 720, 'n_tokens_neox': 683, 'n_words': 149}