fix(deps): regenerate package-lock.json (#547)
* fix(deps): regenerate package-lock.json Co-Authored-By: Claude Code <noreply@anthropic.com> * fix(tests): update toast test for Paragon v23 changes Paragon removed the redundant "alert" role from the toast container in openedx/paragon#3434 (landed via openedx/paragon#3567). Updated test to find the container using document.getElementById instead. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Code <noreply@anthropic.com>
This commit is contained in:
5119
package-lock.json
generated
5119
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -40,8 +40,11 @@ describe('ImportSuccessToast', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
render(<ImportSuccessToast />);
|
render(<ImportSuccessToast />);
|
||||||
const alert = screen.getByRole('alert');
|
|
||||||
expect(alert).toBeInTheDocument();
|
const toastRoot = document.getElementById('toast-root');
|
||||||
|
expect(toastRoot).toBeInTheDocument();
|
||||||
|
expect(toastRoot).toHaveClass('toast-container');
|
||||||
|
|
||||||
const toastMessage = screen.queryByText('Import Successful! Grades will be updated momentarily.');
|
const toastMessage = screen.queryByText('Import Successful! Grades will be updated momentarily.');
|
||||||
expect(toastMessage).toBeNull();
|
expect(toastMessage).toBeNull();
|
||||||
expect(useImportSuccessToastData).toHaveBeenCalled();
|
expect(useImportSuccessToastData).toHaveBeenCalled();
|
||||||
|
|||||||
Reference in New Issue
Block a user