def test_vol_info(browser): """ This clicks the information button and verifies you are taken to the correct page. :param browser: """ page = GCLPOM(browser) page.load() page.test_vol_info() url = page.get_url() + '/assets/pdf/GCL-Volunteer-Information.pdf' assert browser.current_url == url browser.quit()
def test_donate_button(browser): """ This clicks the donate button and verifies you are taken to the correct page. :param browser: """ page = GCLPOM(browser) page.load() page.test_donate_button() url = page.get_url() + '/assets/pdf/GCL-Donation-Info.pdf' assert browser.current_url == url browser.quit()
def test_contact_form(browser): """ Testing that the message submits and doesn't take you to a new page. Message will not email or properly submit in local container. :param browser: """ page = GCLPOM(browser) page.load() page.test_name("Test") page.test_email("*****@*****.**") page.test_message('Test message please ignore') page.click_submit() assert browser.current_url == page.get_url() + "/"