diff --git a/change/@microsoft-fast-ssr-fcd8d776-ce14-4a57-a474-4e5fb4f1acc5.json b/change/@microsoft-fast-ssr-fcd8d776-ce14-4a57-a474-4e5fb4f1acc5.json new file mode 100644 index 00000000000..8ae53b9a469 --- /dev/null +++ b/change/@microsoft-fast-ssr-fcd8d776-ce14-4a57-a474-4e5fb4f1acc5.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "use local placeholder image in fast-ssr tests", + "packageName": "@microsoft/fast-ssr", + "email": "863023+radium-v@users.noreply.github.com", + "dependentChangeType": "none" +} diff --git a/packages/web-components/fast-ssr/server/placeholder.png b/packages/web-components/fast-ssr/server/placeholder.png new file mode 100644 index 00000000000..300ae8d0766 Binary files /dev/null and b/packages/web-components/fast-ssr/server/placeholder.png differ diff --git a/packages/web-components/fast-ssr/server/server.ts b/packages/web-components/fast-ssr/server/server.ts index 57ac2215d02..510344db9b0 100644 --- a/packages/web-components/fast-ssr/server/server.ts +++ b/packages/web-components/fast-ssr/server/server.ts @@ -1,7 +1,8 @@ -import { Readable } from "stream"; -import express, { Request, Response } from "express"; import fs from "fs"; import path from "path"; +import { Readable } from "stream"; + +import express, { Request, Response } from "express"; const __dirname = path.resolve(path.dirname("")); const PORT = 8080; @@ -74,4 +75,7 @@ app.get("/fast-command-buffer.js", (req: Request, res: Response) => res ) ); +app.get("/placeholder.png", (req, res) => + res.sendFile(path.resolve(__dirname, "./server/placeholder.png")) +); app.listen(PORT); diff --git a/packages/web-components/fast-ssr/src/fast-command-buffer/index.fixture.html b/packages/web-components/fast-ssr/src/fast-command-buffer/index.fixture.html index 21ba6bded5b..1da7a75bd03 100644 --- a/packages/web-components/fast-ssr/src/fast-command-buffer/index.fixture.html +++ b/packages/web-components/fast-ssr/src/fast-command-buffer/index.fixture.html @@ -141,7 +141,7 @@ border-radius: calc(var(--control-corner-radius) * 1px); box-shadow: 0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(0.11 * (2 - var(--background-luminance, 1)))), 0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(0.13 * (2 - var(--background-luminance, 1))));}" > - +
- +
- +

Heading

@@ -199,7 +199,7 @@

Heading