2138 - Change cancel button to uploading button for CSV

This commit is contained in:
Jonathan Bobel
2025-03-26 14:49:11 -04:00
parent 7458acdab1
commit d79ece2d01
4 changed files with 36 additions and 9 deletions

View File

@@ -72,10 +72,11 @@ describe('File upload', () => {
});
test("It should add a link to cancel the upload by reloading the page", () => {
expect(form.querySelector("a[href='']")).not.toBeNull();
test("It should display a disabled Uploading button", () => {
const uploadingButton = form.querySelector("button.uploading-button");
expect(uploadingButton).not.toBeNull();
expect(uploadingButton.textContent).toMatch(/Uploading/);
expect(uploadingButton.getAttribute('aria-disabled')).toBe("true");
});
});