diff --git a/cove_iati/templates/cove_iati/explore.html b/cove_iati/templates/cove_iati/explore.html index d387d1dc..60f49020 100644 --- a/cove_iati/templates/cove_iati/explore.html +++ b/cove_iati/templates/cove_iati/explore.html @@ -398,7 +398,7 @@
Generate a private d-preview site with the IATI xml. For preview purposes only. Data will not be uploaded to the main live d-portal website.
- + {% comment %}Translators: Paragraph that describes the application{% endcomment %}{% blocktrans %}After 7 days all uploaded data is deleted from our servers, and the results will no longer be available. Anyone using the link to this page after that will be shown a message that tells them the file has been removed.{% endblocktrans %}
@@ -423,7 +423,7 @@This function will merge together any indicators in the result block, that share the same title. No other data will be altered or changed. This function is designed for instances where multiple periods exist within the same result/indicator, but are not uniquely referenced in the IATI standard or CoVE spreadsheet.
{% if merge_indicator_output %}Output (xml) {{ merge_indicator_output_file_size|filesizeformat }}
- + {% else %} {% endif %} diff --git a/cove_iati/tests_functional.py b/cove_iati/tests_functional.py index 49751fc7..76f2be6c 100644 --- a/cove_iati/tests_functional.py +++ b/cove_iati/tests_functional.py @@ -6,6 +6,8 @@ from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.by import By from selenium.webdriver.chrome.options import Options +from selenium.webdriver.support.ui import WebDriverWait +from selenium.webdriver.support import expected_conditions as EC BROWSER = os.environ.get('BROWSER', 'ChromeHeadless') CHROME_SNAP = bool(os.environ.get('CHROME_SNAP', False)) @@ -129,6 +131,9 @@ def test_explore_iati_url_input(server_url, browser, httpserver, source_filename data_url = browser.current_url + WebDriverWait(browser, 10).until( + EC.presence_of_element_located((By.ID, "data-supplied")) + ) # Click and un-collapse all explore sections all_sections = browser.find_elements(By.CLASS_NAME, 'panel-heading') for section in all_sections: