@@ -131,7 +131,7 @@ describe("cross-surface UX audit", () => {
131131 expect ( sidepanelJs ) . toContain ( "requestAnimationFrame(() => restoreSidepanelFocus(focusDescriptor));" ) ;
132132 expect ( sidepanelJs ) . toContain ( "requestAnimationFrame(() => restoreSidepanelFallbackFocus('page'));" ) ;
133133 expect ( sidepanelJs ) . toContain ( "requestAnimationFrame(() => restoreSidepanelFallbackFocus('all'));" ) ;
134- expect ( sidepanelJs ) . toContain ( ' No scripts match "${searchQuery} ".') ;
134+ expect ( sidepanelJs ) . toContain ( "tSidepanel('sideNoMatchingScriptsForQuery', ' No scripts match \"{query}\ ".', { query: searchQuery })" ) ;
135135 expect ( sidepanelJs ) . toContain ( "Find for " ) ;
136136 expect ( sidepanelHtml ) . toContain ( ".sp-context-banner" ) ;
137137 expect ( sidepanelJs ) . toContain ( "const banner = document.createElement('button');" ) ;
@@ -192,14 +192,14 @@ describe("cross-surface UX audit", () => {
192192 expect ( devtoolsJs ) . toContain ( "$('btnCloseDetail').focus({ preventScroll: true });" ) ;
193193 expect ( devtoolsJs ) . toContain ( "if (selectedEntry && $('netDetail').classList.contains('open')) {" ) ;
194194 expect ( devtoolsJs ) . toContain ( "renderDetailContent(selectedEntry);" ) ;
195- expect ( devtoolsJs ) . toContain ( "clearButton.textContent = ' Reset' " ) ;
196- expect ( devtoolsJs ) . toContain ( "clearButton.setAttribute('aria-label', ' Reset execution filter');" ) ;
195+ expect ( devtoolsJs ) . toContain ( "clearButton.textContent = tDevtools('resetView', ' Reset View'); " ) ;
196+ expect ( devtoolsJs ) . toContain ( "clearButton.setAttribute('aria-label', tDevtools('devtoolsResetExecutionFilter', ' Reset execution filter') );" ) ;
197197 expect ( devtoolsJs ) . toContain ( "tr.setAttribute('aria-selected', String(selectedRow === entry.id));" ) ;
198198 expect ( devtoolsJs ) . toContain ( "Console capture isn’t available here yet. Use Network or Execution for current insight." ) ;
199199 expect ( devtoolsJs ) . toContain ( "No requests match" ) ;
200200 expect ( devtoolsJs ) . toContain ( "No scripts match" ) ;
201- expect ( devtoolsJs ) . toContain ( "clearButton.textContent = ' Clear'" ) ;
202- expect ( devtoolsJs ) . toContain ( "clearButton.setAttribute('aria-label', ' Clear recorded network requests');" ) ;
201+ expect ( devtoolsJs ) . toContain ( "clearButton.textContent = tDevtools('clearAction', ' Clear'); " ) ;
202+ expect ( devtoolsJs ) . toContain ( "clearButton.setAttribute('aria-label', tDevtools('devtoolsClearRecordedNetworkRequests', ' Clear recorded network requests') );" ) ;
203203 expect ( devtoolsJs ) . toContain ( "No network or execution data to export yet." ) ;
204204 expect ( devtoolsJs ) . toContain ( "Diagnostics refresh failed. Showing the last available data." ) ;
205205 expect ( devtoolsHtml ) . toContain ( '.toolbar-btn[aria-busy="true"]' ) ;
0 commit comments