Skip to content

Commit

Permalink
test(tooltip): ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed May 20, 2024
1 parent 545ad93 commit fb017cf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions elements/pf-tooltip/test/pf-tooltip.e2e.ts
Original file line number Diff line number Diff line change
@@ -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-tooltip';

Expand All @@ -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();
});
});

0 comments on commit fb017cf

Please sign in to comment.