File tree Expand file tree Collapse file tree
integration-tests/e2e/realworld-polar Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { expect , test } from "@playwright/test" ;
22
33test . describe ( "raw markdown image placeholders" , ( ) => {
4- test ( "image-heavy pages expose compact webp placeholders in .md output " , async ( { request } ) => {
4+ test ( "image-heavy pages stay exportable as raw markdown " , async ( { request } ) => {
55 const response = await request . get ( "/integrate/mcp.md" ) ;
66
77 expect ( response . status ( ) ) . toBe ( 200 ) ;
88 expect ( response . headers ( ) [ "content-type" ] ) . toContain ( "text/markdown" ) ;
99
1010 const markdown = await response . text ( ) ;
11- expect ( markdown ) . toContain ( 'placeholder="data:image/webp;base64,' ) ;
11+ expect ( markdown ) . toContain ( "Supercharge your AI agents with Polar as a Model Context Protocol (MCP) server." ) ;
12+ expect ( markdown ) . toMatch ( / < (?: i m g | P i x e l a t e d I m a g e ) \s / ) ;
1213 expect ( markdown ) . not . toContain ( 'placeholder="data:image/png;base64,' ) ;
1314 } ) ;
1415} ) ;
You can’t perform that action at this time.
0 commit comments