Fixed unstable requests regression test
Motivation and context
The regression test fails from time to time because notification of successful export is not closed. Probably because we use contains command which selects the same element twice
How has this been tested?
Checklist
-
I submit my changes into the developbranch -
I have created a changelog fragment -
I have updated the documentation accordingly -
I have added tests to cover my changes -
I have linked related issues (see GitHub docs) -
I have increased versions of npm packages if it is necessary (cvat-canvas, cvat-core, cvat-data and cvat-ui)
License
-
I submit my code changes under the same MIT License that covers the project. Feel free to contact the maintainers if that's a concern.
Summary by CodeRabbit
-
Bug Fixes
- Improved error handling for exporting tasks, ensuring the UI remains stable during network errors.
- Enhanced display of error messages for failed requests.
-
Chores
- Streamlined notification management in the requests page tests by simplifying the closure of export notifications.