File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed 
core/src/components/alert/test/a11y Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,19 +21,19 @@ const testAria = async (
2121  const  subHeader  =  alert . locator ( '.alert-sub-title' ) ; 
2222
2323  // If a header exists, it should be an h2 element 
24-   if  ( await  header . count ( )  >  0 )  { 
24+   if  ( ( await  header . count ( ) )  >  0 )  { 
2525    const  headerTagName  =  await  header . evaluate ( ( el )  =>  el . tagName ) ; 
2626    expect ( headerTagName ) . toBe ( 'H2' ) ; 
2727  } 
2828
2929  // If a header and subHeader exist, the subHeader should be an h3 element 
30-   if  ( await  header . count ( )  >  0  &&  await  subHeader . count ( )  >  0 )  { 
30+   if  ( ( await  header . count ( ) )  >  0  &&  ( await  subHeader . count ( ) )  >  0 )  { 
3131    const  subHeaderTagName  =  await  subHeader . evaluate ( ( el )  =>  el . tagName ) ; 
3232    expect ( subHeaderTagName ) . toBe ( 'H3' ) ; 
3333  } 
3434
3535  // If a subHeader exists without a header, the subHeader should be an h2 element 
36-   if  ( await  header . count ( )  ===  0  &&  await  subHeader . count ( )  >  0 )  { 
36+   if  ( ( await  header . count ( ) )  ===  0  &&  ( await  subHeader . count ( ) )  >  0 )  { 
3737    const  subHeaderTagName  =  await  subHeader . evaluate ( ( el )  =>  el . tagName ) ; 
3838    expect ( subHeaderTagName ) . toBe ( 'H2' ) ; 
3939  } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments