diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8731399ac2..04122a3017 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,13 @@ fourfront Change Log ---------- +8.4.5 +===== + +`PR 1917: Add tests to verify the presence and non-empty content of
 elements `_
+
+* Update: Added tests to verify the presence and non-empty content of `
` elements inside static section
+
 
 8.4.4
 =====
diff --git a/deploy/post_deploy_testing/cypress/e2e/01b_static_content.cy.js b/deploy/post_deploy_testing/cypress/e2e/01b_static_content.cy.js
index b30895d0e8..91dd2ac20e 100644
--- a/deploy/post_deploy_testing/cypress/e2e/01b_static_content.cy.js
+++ b/deploy/post_deploy_testing/cypress/e2e/01b_static_content.cy.js
@@ -83,6 +83,19 @@ describe('Static Page & Content Tests', function () {
                             cy.title().should('equal', titleText + ' – 4DN Data Portal').end(); // Ensure ...TITLE... matches.
                             prevTitle = titleText;
 
+                            // Verify the presence of 
 elements and ensure each one is not empty.
+                            cy.document().then((doc) => {
+                                const elements = doc.querySelectorAll('.rst-container > div > pre, .html-container > div > pre, .markdown-container > div > pre');
+                                if (elements.length > 0) {
+                                    cy.get('.rst-container > div > pre, .html-container > div > pre, .markdown-container > div > pre').each(($pre) => {
+                                        const textContent = $pre.text().trim();
+                                        expect(textContent).to.not.be.empty;
+                                    });
+                                } else {
+                                    cy.log('No 
 elements found under .rst-container > div or .html-container > div, .markdown-container > div > pre');
+                                }
+                            });
+
                             if (!haveWeSeenPageWithTableOfContents) {
                                 cy.window().then((w)=>{
                                     if (w.document.querySelectorAll('div.table-of-contents li.table-content-entry a').length > 0){
diff --git a/pyproject.toml b/pyproject.toml
index 5b34cd575d..c017454ae5 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,7 +1,7 @@
 [tool.poetry]
 # Note: Various modules refer to this system as "encoded", not "fourfront".
 name = "encoded"
-version = "8.4.4"
+version = "8.4.5"
 description = "4DN-DCIC Fourfront"
 authors = ["4DN-DCIC Team "]
 license = "MIT"