improv: copy
This commit is contained in:
parent
4397b27f30
commit
77180808ba
2 changed files with 3 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ describe("SecureImageComponent", () => {
|
|||
render(<SecureImageComponent src="https://example.com/image.jpg" />);
|
||||
|
||||
expect(
|
||||
screen.getByText(/Image blocked for security/),
|
||||
screen.getByText(/Image blocked for security.*External images can leak data/),
|
||||
).toBeInTheDocument();
|
||||
expect(screen.getByText("Load Image")).toBeInTheDocument();
|
||||
expect(screen.queryByRole("img")).not.toBeInTheDocument();
|
||||
|
|
@ -97,7 +97,7 @@ describe("SecureImageComponent", () => {
|
|||
|
||||
// Warning message should be gone
|
||||
expect(
|
||||
screen.queryByText(/Image blocked for security/),
|
||||
screen.queryByText(/Image blocked for security.*External images can leak data/),
|
||||
).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ export const SecureImageComponent: React.FC<SecureImageComponentProps> = ({
|
|||
return (
|
||||
<ImagePlaceholder>
|
||||
<WarningText>
|
||||
Image blocked for security. Click to load if you trust the source.
|
||||
Image blocked for security. External images can leak data through URL parameters. Click to load if you trust the source.
|
||||
</WarningText>
|
||||
|
||||
<UrlDisplay>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue