def test_publish_post_linkedin_1(): selenium_utils.moderate_post(pytest.driver, 1, 1) pytest.driver.get(selenium_utils.moderate_url) assert not pytest.driver.find_elements_by_css_selector( 'a[href="/moderate/1/1"]')
def test_publish_post_rss_1(): selenium_utils.moderate_post(pytest.driver, 1, 1) assert not pytest.driver.find_elements_by_css_selector( 'a[href="/moderate/1/1"]') assert "Internal Server Error" not in pytest.driver.title
def test_publish_post_slack_2(): selenium_utils.moderate_post(pytest.driver, 2, 3) pytest.driver.get(selenium_utils.moderate_url) assert not pytest.driver.find_elements_by_css_selector( 'a[href="/moderate/3/2"]')