Skip to content

Commit

Permalink
lazy all the iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
kolodny committed Jan 15, 2024
1 parent e70e05e commit 6e89ee3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion examples/vite-react-ts/src/report/test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,18 @@ export const Test: React.FunctionComponent<
if (testUrl) {
tabs.push({
title: <TabLink href={testUrl}>View Component</TabLink>,
content: <iframe src={testUrl} style={{ width: '100%', height: 500 }} />,
content: (
<iframe
src={testUrl}
style={{
width: '100%',
minHeight: 700,
height: 'calc(100vh - 150px)',
border: '1px solid #e2e2e2',
}}
loading='lazy'
/>
),
});
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "safetest",
"version": "0.1.8",
"version": "0.1.9",
"description": "Safetest is a powerful UI testing library that combines Playwright, Jest, and React for a powerful end-to-end testing solution for applications and component testing. With Safetest, you can easily test the functionality and appearance of your application, ensuring that it works as expected and looks great on all devices.",
"main": "lib/index.js",
"bin": "./lib/cli.js",
Expand Down

0 comments on commit 6e89ee3

Please sign in to comment.