@@ -121,10 +121,10 @@ export class SaveSearchs {
121121 . should ( 'be.visible' )
122122 . click ( ) ;
123123
124- cy . get ( ':nth-child(3) > .btn' )
125- . first ( )
126- . should ( 'be.visible' )
127- . click ( ) ;
124+ // cy.get(':nth-child(3) > .btn')
125+ // .first()
126+ // .should('be.visible')
127+ // .click();
128128 }
129129 //Configurations
130130 configurationsSaveSearch ( ) {
@@ -139,7 +139,7 @@ export class SaveSearchs {
139139 . click ( ) ;
140140 }
141141
142- /**
142+ /**
143143 This method creates a Save Search from Request > Save Search
144144 * @param name: Assign a name for the Save Search
145145 * @param iconName: the correct name must be assigned. E.g. iconName: clipboard because the class="fas fa-fw fa-clipboard"
@@ -148,13 +148,13 @@ export class SaveSearchs {
148148 * @param completeUserName: this name is needed because the user will be selected in the User list
149149 * @return : nothing value
150150 */
151- createSaveSearch ( name , iconName , userName = "" , groupName = "" , completeUserName = "" ) {
151+ createSaveSearch ( name , iconName , userName = "" , groupName = "" , completeUserName = "" , buttonName = "Save ") {
152152 cy . get ( 'button[title="Save Search"]' ) . should ( 'be.visible' ) ;
153153 cy . get ( 'button[title="Save Search"]' ) . click ( ) ;
154154 cy . get ( '[aria-label="Close"]' )
155155 . first ( )
156156 . click ( ) ;
157- cy . get ( 'button[title="Save Search"]' ) . click ( ) ;
157+ cy . get ( 'button[title="Save Search"]' ) . click ( ) ;
158158 cy . xpath ( '//legend[text()="Share With Users"]/parent::fieldset//div[@class="multiselect__spinner"]' ) . should ( 'not.be.visible' ) ;
159159 cy . xpath ( '//legend[text()="Share With Groups"]/parent::fieldset//div[@class="multiselect__spinner"]' ) . should ( 'not.be.visible' ) ;
160160 cy . xpath ( "//label[contains(text(),'Name')]/parent::div//input" ) . should ( 'be.visible' ) ;
@@ -174,7 +174,7 @@ export class SaveSearchs {
174174 cy . xpath ( '//legend[text()="Share With Groups"]//following-sibling::div//div[@class="multiselect__content-wrapper"]/ul/li/span/span' ) . should ( 'have.text' , groupName ) ;
175175 cy . xpath ( '//legend[text()="Share With Groups"]//following-sibling::div//div[@class="multiselect__content-wrapper"]/ul/li/span/span' ) . click ( ) ;
176176 }
177- cy . xpath ( '//footer[@id="save-search-modal___BV_modal_footer_"]/button[text()="Save "]' ) . click ( ) ;
177+ cy . xpath ( '//footer[@id="save-search-modal___BV_modal_footer_"]/button[text()="' + buttonName + ' "]') . click ( ) ;
178178 }
179179
180180 enableNotification ( ) {
@@ -275,16 +275,16 @@ export class SaveSearchs {
275275 cy . xpath ( selectors . clickOnSourceOptn ) . click ( ) ;
276276 cy . xpath ( selectors . clickOnSeriesDrpDwn ) . should ( 'be.visible' ) ;
277277 cy . xpath ( selectors . clickOnSeriesDrpDwn ) . click ( ) ;
278- cy . xpath ( selectors . clickOnSeriesInptBx ) . type ( series , { delay :100 } ) ;
279- cy . xpath ( selectors . clickOnSeriesValue . replace ( 'name' , series ) )
280- . should ( 'be.visible' )
281- . click ( ) ;
278+ cy . xpath ( selectors . clickOnSeriesInptBx ) . type ( series + "{enter}" , { delay :100 } ) ;
279+ // cy.xpath(selectors.clickOnSeriesValue.replace('name',series))
280+ // .should('be.visible')
281+ // .click();
282282 cy . wait ( 2000 ) ;
283283 cy . xpath ( selectors . clickOnMetricDrpDwn ) . click ( ) ;
284- cy . xpath ( selectors . clickOnMetricInptBx ) . type ( metric , { delay :100 } ) ;
285- cy . xpath ( selectors . clickOnMetricValue . replace ( 'name' , metric ) )
286- . should ( 'be.visible' )
287- . click ( ) ;
284+ cy . xpath ( selectors . clickOnMetricInptBx ) . type ( metric + "{enter}" , { delay :100 } ) ;
285+ // cy.xpath(selectors.clickOnMetricValue.replace('name',metric))
286+ // .should('be.visible')
287+ // .click();
288288 cy . wait ( 2000 ) ;
289289 cy . xpath ( selectors . clickOnSumBtn ) . click ( ) ;
290290 switch ( metric_type ) {
0 commit comments