Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEMPORARY: debug logging for mentor section cypress test
Browse files Browse the repository at this point in the history
smartspot2 committed Dec 5, 2024
1 parent 4f38857 commit 827fd4b
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -130,9 +130,11 @@ const MentorSectionAttendance = ({ sectionId }: MentorSectionAttendanceProps): R
// set to the most recent future occurrence
setSelectedOcurrence(futureOccurrences[futureOccurrences.length - 1]);
newAttendances = newOccurrenceMap.get(newSortedOccurrences[0]?.id)?.attendances;
console.log({ futureOccurrences, newAttendances });
} else {
// otherwise use existing selectedOccurrence
newAttendances = newOccurrenceMap.get(selectedOccurrence.id)!.attendances;
console.log({ selectedOccurrence });
}
if (newAttendances) {
setStagedAttendances(newAttendances);
2 changes: 1 addition & 1 deletion cypress/e2e/section/mentor-section.cy.ts
Original file line number Diff line number Diff line change
@@ -82,7 +82,7 @@ describe("section details accessibility", () => {
* tests for manipulating attendances
*/
describe("attendances", () => {
it("should be able to navigate to and view section attendances", () => {
it.only("should be able to navigate to and view section attendances", () => {
cy.setupDB("section/mentor-section", "setup_mentor_section");
cy.login();
cy.visit("/sections/1");

0 comments on commit 827fd4b

Please sign in to comment.