@@ -16,6 +16,13 @@ const createRating = require('../../../../api/feedbackWidgetsCreate');
1616
1717const verifyEmptyPageElements = ( ) => {
1818
19+ cy . verifyElement ( {
20+ labelElement : feedbackRatingWidgetsPageElements . RATING_WIDGETS_HEADER_TITLE_LABEL ,
21+ labelText : "Rating Widgets" ,
22+ element : feedbackRatingWidgetsPageElements . ADD_NEW_WIDGET_BUTTON ,
23+ elementText : 'Add New Widget'
24+ } ) ;
25+
1926 cy . verifyElement ( {
2027 element : feedbackRatingWidgetsPageElements . RATINGS_WIDGETS_EMPTY_PAGE_ICON ,
2128 labelElement : feedbackRatingWidgetsPageElements . RATINGS_WIDGETS_EMPTY_PAGE_TITLE ,
@@ -817,9 +824,9 @@ const getWidgetIdFromDataTable = (index) => {
817824 return cy . getElement ( widgetsDataTableElements ( index ) . WIDGET_ID ) . eq ( 0 ) . getText ( ) ;
818825} ;
819826
820- const navigateToWidgetsDetailPage = ( question ) => {
821- searchWidgetOnDataTable ( question ) ;
822- cy . clickElement ( widgetsDataTableElements ( ) . WIDGET_QUESTION , true ) ;
827+ const navigateToWidgetsDetailPage = ( widgetName ) => {
828+ searchWidgetOnDataTable ( widgetName ) ;
829+ cy . clickElement ( widgetsDataTableElements ( ) . WIDGET_NAME , true ) ;
823830} ;
824831
825832const verifyWidgetDetailsPageElements = ( {
@@ -1042,7 +1049,7 @@ const shouldBeWidgetDeleted = (question) => {
10421049 if ( ! isExists ) {
10431050 cy . getElement ( widgetsDataTableElements ( ) . TABLE_ROWS ) . its ( 'length' ) . then ( ( count ) => {
10441051 for ( var index = 0 ; index < ( count / 2 ) - 1 ; index ++ ) {
1045- cy . shouldNotContainText ( widgetsDataTableElements ( index ) . WIDGET_QUESTION , question ) ;
1052+ cy . shouldNotContainText ( widgetsDataTableElements ( index ) . WIDGET_NAME , question ) ;
10461053 }
10471054 } ) ;
10481055 }
0 commit comments