File tree 1 file changed +3
-6
lines changed
ui-tests/cypress/lib/feedback/ratings
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -863,10 +863,9 @@ const verifyWidgetDetailsPageElements = ({
863
863
} ) ;
864
864
865
865
for ( var index = 0 ; index < commentsTable . ratings . length ; index ++ ) {
866
- var indexOfRatings = commentsTable . ratings . length - index - 1 ;
867
866
cy . verifyElement ( {
868
867
labelElement : feedbackRatingWidgetDetailsCommentsDataTableElements ( index ) . ROW_RATING ,
869
- labelText : commentsTable . ratings [ indexOfRatings ] ,
868
+ labelText : commentsTable . ratings [ index ] ,
870
869
} ) ;
871
870
}
872
871
@@ -878,18 +877,16 @@ const verifyWidgetDetailsPageElements = ({
878
877
}
879
878
880
879
for ( var index = 0 ; index < commentsTable . comments . length ; index ++ ) {
881
- var indexOfComments = commentsTable . comments . length - index - 1 ;
882
880
cy . verifyElement ( {
883
881
labelElement : feedbackRatingWidgetDetailsCommentsDataTableElements ( index ) . ROW_COMMENT ,
884
- labelText : commentsTable . comments [ indexOfComments ] ,
882
+ labelText : commentsTable . comments [ index ] ,
885
883
} ) ;
886
884
}
887
885
888
886
for ( var index = 0 ; index < commentsTable . emails . length ; index ++ ) {
889
- var indexOfEmails = commentsTable . emails . length - index - 1 ;
890
887
cy . verifyElement ( {
891
888
labelElement : feedbackRatingWidgetDetailsCommentsDataTableElements ( index ) . ROW_EMAIL ,
892
- labelText : commentsTable . emails [ indexOfEmails ] ,
889
+ labelText : commentsTable . emails [ index ] ,
893
890
} ) ;
894
891
}
895
892
}
You can’t perform that action at this time.
0 commit comments