Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kavigupta committed Aug 17, 2024
1 parent 8fd7833 commit 17018cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion react/test/quiz_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ import { exec } from 'child_process';
import { writeFileSync } from 'fs';

async function quiz_screencap(t, name) {
await t.eval(() => document.getElementById("quiz-timer").remove());
await t.eval(() => {
const elem = document.getElementById("quiz-timer");
if (elem) {
elem.remove();
}
});
await t.wait(1000);
await screencap(t, name);
}
Expand Down

0 comments on commit 17018cd

Please sign in to comment.