@@ -72,7 +72,7 @@ describe('SearchNavbarComponent', () => {
7272 spyOn ( component , 'expand' ) . and . callThrough ( ) ;
7373 spyOn ( component , 'onSubmit' ) . and . callThrough ( ) ;
7474 spyOn ( router , 'navigate' ) ;
75- const searchIcon = fixture . debugElement . query ( By . css ( '# search-navbar-container form .submit-icon' ) ) ;
75+ const searchIcon = fixture . debugElement . query ( By . css ( '. search-navbar-container form .submit-icon' ) ) ;
7676 searchIcon . triggerEventHandler ( 'click' , {
7777 preventDefault : ( ) => { /**/
7878 }
@@ -88,7 +88,7 @@ describe('SearchNavbarComponent', () => {
8888 describe ( 'empty query' , ( ) => {
8989 describe ( 'press submit button' , ( ) => {
9090 beforeEach ( fakeAsync ( ( ) => {
91- const searchIcon = fixture . debugElement . query ( By . css ( '# search-navbar-container form .submit-icon' ) ) ;
91+ const searchIcon = fixture . debugElement . query ( By . css ( '. search-navbar-container form .submit-icon' ) ) ;
9292 searchIcon . triggerEventHandler ( 'click' , {
9393 preventDefault : ( ) => { /**/
9494 }
@@ -109,14 +109,14 @@ describe('SearchNavbarComponent', () => {
109109 beforeEach ( async ( ) => {
110110 await fixture . whenStable ( ) ;
111111 fixture . detectChanges ( ) ;
112- searchInput = fixture . debugElement . query ( By . css ( '# search-navbar-container form input' ) ) ;
112+ searchInput = fixture . debugElement . query ( By . css ( '. search-navbar-container form input' ) ) ;
113113 searchInput . nativeElement . value = 'test' ;
114114 searchInput . nativeElement . dispatchEvent ( new Event ( 'input' ) ) ;
115115 fixture . detectChanges ( ) ;
116116 } ) ;
117117 describe ( 'press submit button' , ( ) => {
118118 beforeEach ( fakeAsync ( ( ) => {
119- const searchIcon = fixture . debugElement . query ( By . css ( '# search-navbar-container form .submit-icon' ) ) ;
119+ const searchIcon = fixture . debugElement . query ( By . css ( '. search-navbar-container form .submit-icon' ) ) ;
120120 searchIcon . triggerEventHandler ( 'click' , null ) ;
121121 tick ( ) ;
122122 fixture . detectChanges ( ) ;
0 commit comments