Skip to content

Commit 1c982cc

Browse files
committed
Updated as order by ascending created date
1 parent 18ba12d commit 1c982cc

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

ui-tests/cypress/lib/feedback/ratings/widgets.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -863,10 +863,9 @@ const verifyWidgetDetailsPageElements = ({
863863
});
864864

865865
for (var index = 0; index < commentsTable.ratings.length; index++) {
866-
var indexOfRatings = commentsTable.ratings.length - index - 1;
867866
cy.verifyElement({
868867
labelElement: feedbackRatingWidgetDetailsCommentsDataTableElements(index).ROW_RATING,
869-
labelText: commentsTable.ratings[indexOfRatings],
868+
labelText: commentsTable.ratings[index],
870869
});
871870
}
872871

@@ -878,18 +877,16 @@ const verifyWidgetDetailsPageElements = ({
878877
}
879878

880879
for (var index = 0; index < commentsTable.comments.length; index++) {
881-
var indexOfComments = commentsTable.comments.length - index - 1;
882880
cy.verifyElement({
883881
labelElement: feedbackRatingWidgetDetailsCommentsDataTableElements(index).ROW_COMMENT,
884-
labelText: commentsTable.comments[indexOfComments],
882+
labelText: commentsTable.comments[index],
885883
});
886884
}
887885

888886
for (var index = 0; index < commentsTable.emails.length; index++) {
889-
var indexOfEmails = commentsTable.emails.length - index - 1;
890887
cy.verifyElement({
891888
labelElement: feedbackRatingWidgetDetailsCommentsDataTableElements(index).ROW_EMAIL,
892-
labelText: commentsTable.emails[indexOfEmails],
889+
labelText: commentsTable.emails[index],
893890
});
894891
}
895892
}

0 commit comments

Comments
 (0)