Changing alert back to a focus and fixing tests

This commit is contained in:
Jonathan Bobel
2025-04-02 11:39:07 -04:00
parent 38451d77ad
commit 193184983d
4 changed files with 12 additions and 9 deletions

View File

@@ -19,8 +19,8 @@ test('writes upload message to the live region on DOMContentLoaded', () => {
document.dispatchEvent(new Event('DOMContentLoaded'));
// Live region will be cleared first, then updated
jest.advanceTimersByTime(50);
jest.advanceTimersByTime(300);
const srRegion = document.getElementById('upload-status-live');
expect(srRegion.textContent).toBe('File upload successful');
expect(srRegion.textContent).toBe('File upload successful\u00A0');
});