@@ -34,7 +34,7 @@ const getCreateDetectorButton = () => cy.sa_getButtonByText('Create detector');
3434
3535const validateAlertPanel = ( alertName ) =>
3636 cy
37- . sa_getElementByText ( '.euiTitle ' , 'Alert triggers' )
37+ . sa_getElementByText ( '.euiText ' , 'Alert triggers' )
3838 . parentsUntil ( '.euiPanel' )
3939 . siblings ( )
4040 . eq ( 2 )
@@ -98,9 +98,9 @@ const validateFieldMappingsTable = (message = '') => {
9898
9999const editDetectorDetails = ( detectorName , panelTitle ) => {
100100 cy . sa_urlShouldContain ( 'detector-details' ) . then ( ( ) => {
101- cy . sa_getElementByText ( '.euiTitle ' , detectorName ) ;
102- cy . sa_getElementByText ( '.euiPanel .euiTitle ' , panelTitle ) ;
103- cy . sa_getElementByText ( '.euiPanel .euiTitle ' , panelTitle )
101+ cy . sa_getElementByText ( '.euiText ' , detectorName ) ;
102+ cy . sa_getElementByText ( '.euiPanel .euiText ' , panelTitle ) ;
103+ cy . sa_getElementByText ( '.euiPanel .euiText ' , panelTitle )
104104 . parent ( )
105105 . siblings ( )
106106 . within ( ( ) => cy . get ( 'button' ) . contains ( 'Edit' ) . click ( ) ) ;
@@ -128,7 +128,7 @@ const validateAutomaticFieldMappingsPanel = (mappings) =>
128128const validatePendingFieldMappingsPanel = ( mappings ) => {
129129 cy . get ( '.editFieldMappings' ) . within ( ( ) => {
130130 // Pending field mappings
131- cy . sa_getElementByText ( '.euiTitle ' , 'Pending field mappings' )
131+ cy . sa_getElementByText ( '.euiText ' , 'Pending field mappings' )
132132 . parents ( '.euiPanel' )
133133 . within ( ( ) => {
134134 cy . sa_getElementByTestSubject ( 'pending-mapped-fields-table' )
@@ -143,7 +143,7 @@ const fillDetailsForm = (
143143 dataSource ,
144144 isCustomDataSource = false
145145) => {
146- getNameField ( ) . type ( detectorName ) ;
146+ getNameField ( ) . type ( detectorName , { force : true } ) ;
147147
148148 if ( isCustomDataSource ) {
149149 getDataSourceField ( )
@@ -210,7 +210,7 @@ const createDetector = (detectorName, dataSource, expectFailure) => {
210210 . should ( 'contain' , detectorId )
211211 . then ( ( ) => {
212212 // Confirm detector state
213- cy . sa_getElementByText ( '.euiTitle ' , detectorName ) ;
213+ cy . sa_getElementByText ( '.euiText ' , detectorName ) ;
214214 cy . sa_getElementByText ( '.euiHealth' , 'Active' ) . then ( ( ) => {
215215 cy . sa_validateDetailsItem ( 'Detector name' , detectorName ) ;
216216 cy . sa_validateDetailsItem ( 'Description' , '-' ) ;
@@ -478,7 +478,7 @@ describe('Detectors', () => {
478478 openDetectorDetails ( detectorName ) ;
479479
480480 editDetectorDetails ( detectorName , 'Active rules' ) ;
481- cy . sa_getElementByText ( '.euiTitle ' , 'Detection rules (14)' ) ;
481+ cy . sa_getElementByText ( '.euiText ' , 'Detection rules (14)' ) ;
482482
483483 cy . sa_getInputByPlaceholder ( 'Search...' )
484484 . type ( `${ cypressDNSRule } ` )
@@ -490,11 +490,11 @@ describe('Detectors', () => {
490490 . find ( '.euiTableCellContent button' )
491491 . click ( ) ;
492492
493- cy . sa_getElementByText ( '.euiTitle ' , 'Detection rules (13)' ) ;
493+ cy . sa_getElementByText ( '.euiText ' , 'Detection rules (13)' ) ;
494494 cy . sa_getElementByText ( 'button' , 'Save changes' ) . click ( { force : true } ) ;
495495 cy . sa_urlShouldContain ( 'detector-details' ) . then ( ( ) => {
496- cy . sa_getElementByText ( '.euiTitle ' , detectorName ) ;
497- cy . sa_getElementByText ( '.euiPanel .euiTitle ' , 'Active rules (13)' ) ;
496+ cy . sa_getElementByText ( '.euiText ' , detectorName ) ;
497+ cy . sa_getElementByText ( '.euiPanel .euiText ' , 'Active rules (13)' ) ;
498498 } ) ;
499499 } ) ;
500500
0 commit comments