File tree Expand file tree Collapse file tree
source/app/blueprints/pages/case/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,10 +98,11 @@ <h4 class="page-title mb-0" id="currentNoteTitle"></h4>
9898 </ span >
9999 </ button >
100100 < div class ="dropdown ">
101- < button class ="btn bg-transparent " id ="dropdownMenuButton " data-toggle ="dropdown " aria-haspopup ="true " aria-expanded ="true ">
101+ < button type =" button " class ="btn bg-transparent " id ="noteQuickActionsToggle " data-toggle ="dropdown " aria-haspopup ="true " aria-expanded ="false " title =" More note actions " aria-label =" More note actions ">
102102 < span aria-hidden ="true "> < i class ="fas fa-ellipsis-v "> </ i > </ span >
103103 </ button >
104- < div class ="dropdown-menu pull-right " id ="note_quick_actions " aria-labelledby ="dropdownMenuButton ">
104+ < div class ="dropdown-menu pull-right " id ="note_quick_actions " aria-labelledby ="noteQuickActionsToggle ">
105+ < a class ="dropdown-item " href ="# " onclick ="load_note_revisions();return false; "> < i class ="fa-solid fa-clock-rotate-left mr-2 "> </ i > Revision history</ a >
105106 </ div >
106107 </ div >
107108 </ div >
Original file line number Diff line number Diff line change 1+ import assert from 'node:assert/strict' ;
2+ import { readFile } from 'node:fs/promises' ;
3+ import test from 'node:test' ;
4+
5+ const templateUrl = new URL ( '../../source/app/blueprints/pages/case/templates/case_notes_v2.html' , import . meta. url ) ;
6+
7+ test ( 'note overflow menu always exposes revision history' , async ( ) => {
8+ const template = await readFile ( templateUrl , 'utf8' ) ;
9+
10+ assert . match ( template , / i d = " n o t e Q u i c k A c t i o n s T o g g l e " [ ^ > ] * d a t a - t o g g l e = " d r o p d o w n " / ) ;
11+ assert . match ( template , / i d = " n o t e _ q u i c k _ a c t i o n s " [ ^ > ] * a r i a - l a b e l l e d b y = " n o t e Q u i c k A c t i o n s T o g g l e " / ) ;
12+ assert . match ( template , / o n c l i c k = " l o a d _ n o t e _ r e v i s i o n s \( \) ; r e t u r n f a l s e ; " [ ^ > ] * > .* R e v i s i o n h i s t o r y / s) ;
13+ } ) ;
You can’t perform that action at this time.
0 commit comments