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 @@ -97,14 +97,6 @@ <h4 class="page-title mb-0" id="currentNoteTitle"></h4>
9797 < i class ="fa-solid fa-trash mr-2 text-danger "> </ i >
9898 </ span >
9999 </ button >
100- < div class ="dropdown ">
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 ">
102- < span aria-hidden ="true "> < i class ="fas fa-ellipsis-v "> </ i > </ span >
103- </ button >
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 >
106- </ div >
107- </ div >
108100 </ div >
109101 </ div >
110102 </ div >
Original file line number Diff line number Diff line change @@ -4,10 +4,9 @@ import test from 'node:test';
44
55const templateUrl = new URL ( '../../source/app/blueprints/pages/case/templates/case_notes_v2.html' , import . meta. url ) ;
66
7- test ( 'note overflow menu always exposes revision history' , async ( ) => {
7+ test ( 'note toolbar keeps its revision history control without a redundant overflow menu ' , async ( ) => {
88 const template = await readFile ( templateUrl , 'utf8' ) ;
99
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) ;
10+ 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 \( \) " / ) ;
11+ assert . doesNotMatch ( template , / n o t e Q u i c k A c t i o n s T o g g l e | n o t e _ q u i c k _ a c t i o n s | f a - e l l i p s i s - v / ) ;
1312} ) ;
You can’t perform that action at this time.
0 commit comments