File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,12 +68,16 @@ describe('ErrorPageRenderer', () => {
6868 orgTarget : 'myorg@example.com' ,
6969 } ;
7070 const html = renderer . render ( data ) ;
71- // Template from @salesforce /webapp-experimental ( or minimal fallback); assert placeholders and Quick Actions
71+ // Assert injected placeholders (template may be from package or minimal fallback; Quick Actions vary by version)
7272 expect ( html ) . to . include ( 'No Dev Server Detected' ) ;
7373 expect ( html ) . to . include ( 'http://localhost:5173' ) ;
7474 expect ( html ) . to . include ( 'http://localhost:4545' ) ;
7575 expect ( html ) . to . include ( 'npm run dev' ) ;
76- expect ( html ) . to . include ( 'Retry Detection' ) ;
76+ // Retry action: accept either button label or data attribute (template may vary by package version in CI)
77+ expect (
78+ html . includes ( 'Retry Detection' ) || html . includes ( 'data-proxy-action="retry"' ) ,
79+ 'expected HTML to include "Retry Detection" or data-proxy-action="retry"'
80+ ) . to . be . true ;
7781 expect ( html . length ) . to . be . greaterThan ( 500 ) ;
7882 } ) ;
7983 } ) ;
You can’t perform that action at this time.
0 commit comments