diff --git a/elements/pf-tile/test/pf-tile.e2e.ts b/elements/pf-tile/test/pf-tile.e2e.ts index ed15c452e4..705b5fd500 100644 --- a/elements/pf-tile/test/pf-tile.e2e.ts +++ b/elements/pf-tile/test/pf-tile.e2e.ts @@ -1,5 +1,6 @@ import { test } from '@playwright/test'; import { PfeDemoPage } from '@patternfly/pfe-tools/test/playwright/PfeDemoPage.js'; +import { SSRPage } from '@patternfly/pfe-tools/test/playwright/SSRPage.js'; const tagName = 'pf-tile'; @@ -9,4 +10,16 @@ test.describe(tagName, () => { await componentPage.navigate(); await componentPage.snapshot(); }); + + test('ssr', async ({ browser }) => { + const fixture = new SSRPage({ + tagName, + browser, + demoDir: new URL('../demo/', import.meta.url), + importSpecifiers: [ + `@patternfly/elements/${tagName}/${tagName}.js`, + ], + }); + await fixture.snapshots(); + }); });