feat(tests, components): enhance Cypress commands and UI elements for improved testing and accessibility

- Added new Cypress commands for mocking admin-related API interactions, including list, create, update, delete, and change status functionalities.
- Introduced data-cy attributes across various components (e.g., Breadcrumbs, Forms, Tables) to improve testability and accessibility.
- Updated existing components to support new data-cy attributes for better integration with Cypress tests.
This commit is contained in:
AmirReza Jamali
2026-04-25 13:25:23 +03:30
parent 2a4f3e7e4b
commit eab516c7f3
24 changed files with 814 additions and 23 deletions
+7 -3
View File
@@ -22,9 +22,13 @@ function EmptyListWrapper<T>({
if (!list.length) {
return (
<TableRow>
<TableCell className="text-center" colSpan={columns.length * 100}>
<h2>{emptyMessage}</h2>
<TableRow data-cy="empty-list-row">
<TableCell
className="text-center"
colSpan={columns.length * 100}
data-cy="empty-list-cell"
>
<h2 data-cy="empty-list-message">{emptyMessage}</h2>
</TableCell>
</TableRow>
);