Skip to content

Commit 1f1d6e6

Browse files
committed
Fix a test
1 parent 0972e5c commit 1f1d6e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Frontend/test/specs/customchecks/questions/failedCustomChecks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export function customChecksListPaginationElement() {
2525
const customChecksListPaginationElement = screen.queryByRole("row", { name: "custom-check-pagination" });
2626
return customChecksListPaginationElement;
2727
}
28-
export async function customChecksReportedDateList() {
29-
const timeElements = await screen.getAllByRole("note", { name: "custom-check-reported-date" });
28+
export function customChecksReportedDateList() {
29+
const timeElements = screen.getAllByRole("note", { name: "custom-check-reported-date" });
3030

3131
const timeStamps = timeElements.map((el) => {
3232
const utcDateString = el.title.match(/(\w+day, \w+ \d+, \d+ \d+:\d+ [APM]+ \(UTC\))/);

src/Frontend/test/specs/customchecks/viewing-failing-custom-checks.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe("FEATURE: Failing custom checks", () => {
8888
expect(await customChecksFailedRowsList()).toHaveLength(failingCustomCheckCount); //count of failed checks matches failing count set
8989
});
9090

91-
const timestamps = await customChecksReportedDateList(); // Ensure this is awaited correctly
91+
const timestamps = customChecksReportedDateList(); // Ensure this is awaited correctly
9292

9393
// Ensure that the times are in descending order
9494
for (let i = 0; i < timestamps.length - 1; i++) {

0 commit comments

Comments
 (0)