def test_resubmitting_proposal(self, browser_with_proposal): browser = browser_with_proposal login_god(browser) select_proposal(browser) assert wait(lambda: browser.find_link_by_text("edit")) browser.find_link_by_text("edit").first.click() assert wait(lambda: browser.find_by_name('accept-disclaimer')) browser.find_by_name('accept-disclaimer').first.check() browser.find_by_css('input[type="submit"]').first.click() assert success(browser)
def browser(browser): login_god(browser, visit_root=False) browser.visit(browser.app_url + 'r/mercator/@create_proposal') browser.is_element_present_by_name('user-info-first-name', wait_time=10) return browser