File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ export class ErrorPageRenderer {
5555 <div class="{{RUNTIME_SECTION_CLASS}}"></div>
5656 <div class="{{DEV_SERVER_SECTION_CLASS}}"><pre>{{ERROR_MESSAGE_TEXT}}</pre><pre>{{STDERR_OUTPUT}}</pre><h2>{{SUGGESTIONS_TITLE}}</h2><ul>{{SUGGESTIONS_LIST}}</ul></div>
5757 <div class="{{SUGGESTIONS_SECTION_CLASS}}"></div>
58+ <div class="quick-actions"><h3>Quick Actions</h3><button type="button" class="action-btn" data-proxy-action="retry">Retry Detection</button></div>
5859 <p class="{{AUTO_REFRESH_CLASS}}">{{AUTO_REFRESH_TEXT}}</p>
5960 <p>Dev: {{DEV_SERVER_URL}} | Proxy: {{PROXY_URL}} | Port: {{PROXY_PORT}} | Org: {{ORG_TARGET}} | Script: {{WORKSPACE_SCRIPT}} | Last: {{LAST_CHECK_TIME}}</p>
6061</body>
Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ describe('resolveDevCommand (W-20243732)', () => {
5454 if ( ! existsSync ( join ( FIXTURE_RESOLVE , 'package.json' ) ) ) {
5555 this . skip ( ) ;
5656 }
57+ if ( ! existsSync ( join ( FIXTURE_RESOLVE , 'node_modules' , '.bin' , 'vite' ) ) ) {
58+ this . skip ( ) ;
59+ }
5760 const result = resolveDirectDevCommand ( FIXTURE_RESOLVE , 'npm run dev' ) ;
5861 expect ( result ) . to . not . be . null ;
5962 expect ( result ! . cmd ) . to . include ( 'node_modules' ) ;
@@ -66,6 +69,9 @@ describe('resolveDevCommand (W-20243732)', () => {
6669 if ( ! existsSync ( join ( FIXTURE_RESOLVE , 'package.json' ) ) ) {
6770 this . skip ( ) ;
6871 }
72+ if ( ! existsSync ( join ( FIXTURE_RESOLVE , 'node_modules' , '.bin' , 'vite' ) ) ) {
73+ this . skip ( ) ;
74+ }
6975 const result = resolveDirectDevCommand ( FIXTURE_RESOLVE , 'yarn dev' ) ;
7076 expect ( result ) . to . not . be . null ;
7177 expect ( result ! . cmd ) . to . include ( 'vite' ) ;
Original file line number Diff line number Diff line change @@ -68,9 +68,13 @@ 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
72+ expect ( html ) . to . include ( 'No Dev Server Detected' ) ;
73+ expect ( html ) . to . include ( 'http://localhost:5173' ) ;
74+ expect ( html ) . to . include ( 'http://localhost:4545' ) ;
75+ expect ( html ) . to . include ( 'npm run dev' ) ;
7176 expect ( html ) . to . include ( 'Retry Detection' ) ;
72- expect ( html ) . to . include ( 'Proxy-only' ) ;
73- expect ( html ) . to . include ( 'Use URL' ) ;
77+ expect ( html . length ) . to . be . greaterThan ( 500 ) ;
7478 } ) ;
7579 } ) ;
7680
You can’t perform that action at this time.
0 commit comments