Skip to content

Commit

Permalink
change to class... (#12645)
Browse files Browse the repository at this point in the history
  • Loading branch information
weiquu committed Nov 27, 2023
1 parent 9d24d00 commit a9292bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ private boolean isRubricResponseEqual(WebElement responseField, FeedbackResponse
FeedbackRubricResponseDetails responseDetails = (FeedbackRubricResponseDetails) response.getResponseDetailsCopy();
List<Integer> answers = responseDetails.getAnswer();
for (int i = 0; i < answers.size(); i++) {
WebElement rubricRow = responseField.findElements(By.cssSelector("#rubric-answers tr")).get(i);
WebElement rubricTableBody = responseField.findElement(By.className("rubric-answers"));
WebElement rubricRow = rubricTableBody.findElements(By.cssSelector("tr")).get(i);
WebElement rubricCell = rubricRow.findElements(By.tagName("td")).get(answers.get(i) + 1);
if (rubricCell.findElements(By.className("fa-check")).size() == 0) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<th class="text-center" *ngFor="let choice of questionDetails.rubricChoices">{{ choice }}</th>
</tr>
</thead>
<tbody id="rubric-answers">
<tbody class="rubric-answers">
<tr *ngFor="let answer of answers; let i = index">
<td>{{ questionDetails.rubricSubQuestions[i] }}</td>
<td class="text-center" *ngFor="let choice of questionDetails.rubricChoices">
Expand Down

0 comments on commit a9292bb

Please sign in to comment.