Skip to content

Commit

Permalink
fix(Rv-no-id): Fix error (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
knguyenrise8 authored Jan 13, 2025
1 parent 24e4cea commit 0d8b79f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/e2e/ReviewTemplate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,12 @@ test.describe("ReviewTemplate Page", () => {
}

const finalSubmitButton = page.getByRole("button", { name: "Download CSV" });
const doneButton = page.getByRole("button", { name: "Done" });
await expect(submitButton).toBeEnabled();
await submitButton.click();

await finalSubmitButton.click();
await doneButton.click();
await expect(page).toHaveURL("/");
});
});
11 changes: 11 additions & 0 deletions frontend/src/components/ReviewBulk.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,17 @@ const ReviewBulk = ({
>
Cancel
</Button>
<Button
className="extract-button-submit"
onClick={
() => navigate("/")
}
type="submit"
disabled={resultsTable.reduce((sum, result) => result.errors + sum, 0) >
0}
>
Done
</Button>
</div>
</div>
</div>
Expand Down

0 comments on commit 0d8b79f

Please sign in to comment.