-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7853d57
commit 701d0d6
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<pf-background-image filter | ||
src="pfbg.jpg" | ||
src-2x="pfbg_576.jpg" | ||
src-sm="pfbg_768.jpg" | ||
src-sm-2x="[email protected]" | ||
src-lg="pfbg_1200.jpg" | ||
></pf-background-image> |
16 changes: 16 additions & 0 deletions
16
elements/pf-background-image/test/pf-background-image.ssr.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { SSRPage } from '@patternfly/pfe-tools/test/playwright/SSRPage.js'; | ||
import { test } from '@playwright/test'; | ||
|
||
const tagName = 'pf-background-image'; | ||
|
||
test.describe(tagName, () => { | ||
test('ssr', async ({ page }) => { | ||
const fixture = new SSRPage(tagName, page, { | ||
demoURL: new URL('../demo/ssr.html', import.meta.url), | ||
importSpecifiers: [ | ||
'@patternfly/elements/pf-background-image/pf-background-image.js', | ||
], | ||
}); | ||
await fixture.snapshot(); | ||
}); | ||
}); |