Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#11126] Expand empty search results for feedback session logs #11151

Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ public void startSearching() {
logsOutput
.findElements(By.className("card"))
.forEach(card -> {
String sessionName = card.getText().trim();
click(card.findElement(By.className("fa-chevron-down")));
if (!card.findElements(By.className("fa-chevron-down")).isEmpty()) {
click(card.findElement(By.className("fa-chevron-down")));
}
String sessionName = card.findElement(By.className("card-header")).getText().trim();
isLogPresentForSession.put(sessionName, !card.findElements(By.className("card-body")).isEmpty());
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class InstructorAuditLogsPageComponent implements OnInit {

private toFeedbackSessionLogModel(log: FeedbackSessionLog): FeedbackSessionLogModel {
return {
isTabExpanded: false,
isTabExpanded: log.feedbackSessionLogEntries.length === 0,
feedbackSessionName: log.feedbackSessionData.feedbackSessionName,
logColumnsData: [
{ header: 'Time', sortBy: SortBy.LOG_DATE },
Expand Down