\ No newline at end of file
diff --git a/test-app/e2e/csr.spec.ts-snapshots/CSR-test-case-1-mobile-chrome.txt b/test-app/e2e/csr.spec.ts-snapshots/CSR-test-case-1-mobile-chrome.txt
index 2a54d49e..28b8c914 100644
--- a/test-app/e2e/csr.spec.ts-snapshots/CSR-test-case-1-mobile-chrome.txt
+++ b/test-app/e2e/csr.spec.ts-snapshots/CSR-test-case-1-mobile-chrome.txt
@@ -1 +1 @@
-
Directive
IKImageDirective
IKVideoDirective
\ No newline at end of file
+
Directive
IKImageDirective
IKVideoDirective
\ No newline at end of file
diff --git a/test-app/e2e/csr.spec.ts-snapshots/CSR-test-case-1-mobile-safari.txt b/test-app/e2e/csr.spec.ts-snapshots/CSR-test-case-1-mobile-safari.txt
index 2a54d49e..28b8c914 100644
--- a/test-app/e2e/csr.spec.ts-snapshots/CSR-test-case-1-mobile-safari.txt
+++ b/test-app/e2e/csr.spec.ts-snapshots/CSR-test-case-1-mobile-safari.txt
@@ -1 +1 @@
-
Directive
IKImageDirective
IKVideoDirective
\ No newline at end of file
+
Directive
IKImageDirective
IKVideoDirective
\ No newline at end of file
diff --git a/test-app/e2e/csr.spec.ts-snapshots/CSR-test-case-1-webkit.txt b/test-app/e2e/csr.spec.ts-snapshots/CSR-test-case-1-webkit.txt
index 2a54d49e..28b8c914 100644
--- a/test-app/e2e/csr.spec.ts-snapshots/CSR-test-case-1-webkit.txt
+++ b/test-app/e2e/csr.spec.ts-snapshots/CSR-test-case-1-webkit.txt
@@ -1 +1 @@
-
Directive
IKImageDirective
IKVideoDirective
\ No newline at end of file
+
Directive
IKImageDirective
IKVideoDirective
\ No newline at end of file
diff --git a/test-app/e2e/ssr.spec.ts b/test-app/e2e/ssr.spec.ts
index 697a3c0a..3ffe6054 100644
--- a/test-app/e2e/ssr.spec.ts
+++ b/test-app/e2e/ssr.spec.ts
@@ -17,6 +17,10 @@ test("SSR test case", async ({ page }) => {
// Grab the entire HTML from the element
const outputHtml = await outputElement.evaluate(el => el.outerHTML);
+ // Angular stamps its exact version on the root element; normalize it so the
+ // snapshot doesn't break on every Angular patch release.
+ const normalizedHtml = outputHtml.replace(/ng-version="[^"]*"/g, 'ng-version="x.y.z"');
+
// Compare against a stored snapshot
- expect(outputHtml).toMatchSnapshot();
+ expect(normalizedHtml).toMatchSnapshot();
});
diff --git a/test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-chromium.txt b/test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-chromium.txt
index 494fb1e6..db3d39fa 100644
--- a/test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-chromium.txt
+++ b/test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-chromium.txt
@@ -1 +1 @@
-
Directive
IKImageDirective
IKVideoDirective
\ No newline at end of file
+
Directive
IKImageDirective
IKVideoDirective
\ No newline at end of file
diff --git a/test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-mobile-chrome.txt b/test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-mobile-chrome.txt
index 494fb1e6..db3d39fa 100644
--- a/test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-mobile-chrome.txt
+++ b/test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-mobile-chrome.txt
@@ -1 +1 @@
-
Directive
IKImageDirective
IKVideoDirective
\ No newline at end of file
+
Directive
IKImageDirective
IKVideoDirective
\ No newline at end of file
diff --git a/test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-mobile-safari.txt b/test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-mobile-safari.txt
index 494fb1e6..db3d39fa 100644
--- a/test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-mobile-safari.txt
+++ b/test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-mobile-safari.txt
@@ -1 +1 @@
-
Directive
IKImageDirective
IKVideoDirective
\ No newline at end of file
+
Directive
IKImageDirective
IKVideoDirective
\ No newline at end of file
diff --git a/test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-webkit.txt b/test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-webkit.txt
index 494fb1e6..db3d39fa 100644
--- a/test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-webkit.txt
+++ b/test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-webkit.txt
@@ -1 +1 @@
-