@@ -19,10 +19,10 @@ export class CmkCEEQueryEditorPage extends CmkQueryEditorPage {
1919
2020 async filterByHostname ( hostname : string ) {
2121 await this . addFilter ( FilterTypes . HOSTNAME ) ;
22- await this . page . getByLabel ( FilterTypes . HOSTNAME ) . fill ( hostname ) ;
22+ await this . page . getByLabel ( FilterTypes . HOSTNAME , { exact : true } ) . fill ( hostname ) ;
2323 await this . expectSpinners ( false ) ;
2424 await this . page . keyboard . press ( 'Enter' ) ;
25- await this . page . getByLabel ( FilterTypes . HOSTNAME ) . blur ( ) ;
25+ await this . page . getByLabel ( FilterTypes . HOSTNAME , { exact : true } ) . blur ( ) ;
2626 await this . expectSpinners ( false ) ;
2727 }
2828
@@ -48,15 +48,15 @@ export class CmkCEEQueryEditorPage extends CmkQueryEditorPage {
4848
4949 async filterByService ( service : Services ) {
5050 await this . addFilter ( FilterTypes . SERVICE ) ;
51- await this . page . getByLabel ( 'Service' ) . fill ( service ) ;
51+ await this . page . getByLabel ( 'Service' , { exact : true } ) . fill ( service ) ;
5252 await this . expectSpinners ( false ) ;
5353 await this . page . keyboard . press ( 'Enter' ) ;
5454 await this . expectSpinners ( false ) ;
5555 }
5656
5757 async filterByHostLabel ( label : string ) {
5858 await this . addFilter ( FilterTypes . HOST_LABELS ) ;
59- await this . page . getByLabel ( FilterTypes . HOST_LABELS ) . fill ( label ) ;
59+ await this . page . getByLabel ( FilterTypes . HOST_LABELS , { exact : true } ) . fill ( label ) ;
6060 await this . expectSpinners ( false ) ;
6161 await this . page . keyboard . press ( 'Enter' ) ;
6262 await this . expectSpinners ( false ) ;
@@ -72,7 +72,7 @@ export class CmkCEEQueryEditorPage extends CmkQueryEditorPage {
7272 if ( testId ) {
7373 component = this . page . getByTestId ( testId ) ;
7474 } else {
75- component = this . page . getByLabel ( filter ) ;
75+ component = this . page . getByLabel ( filter , { exact : true } ) ;
7676 }
7777
7878 await expect ( component ) . toBeVisible ( ) ;
0 commit comments