Fix E2E test breakage (#380)

* Add logging placeholder functions, fix notes.js uids

* Add UIDs to inbox items. Includes migration.

* Add UID to users.

* Add project UIDs usage.

* Add script that runs specific E2E test(s)

* Only run Chromium E2E tests by default.

* Fix breaking E2E tests

* fixup! Fix breaking E2E tests

---------

Co-authored-by: antanst <>
Co-authored-by: Chris Veleris <chrisveleris@gmail.com>
This commit is contained in:
Antonis 2025-10-05 16:04:46 +03:00 committed by GitHub
parent 7651677b71
commit 4fa2aa91bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 278 additions and 108 deletions

View file

@ -26,7 +26,7 @@ interface ProjectModalProps {
isOpen: boolean;
onClose: () => void;
onSave: (project: Project) => void;
onDelete?: (projectId: number) => Promise<void>;
onDelete?: (projectUid: string) => Promise<void>;
project?: Project;
areas: Area[];
}
@ -345,8 +345,8 @@ const ProjectModal: React.FC<ProjectModalProps> = ({
tags: tags.map((name) => ({ name })),
};
// Save the project
onSave(projectData);
// Save the project and wait for it to complete
await onSave(projectData);
showSuccessToast(
project
@ -366,9 +366,9 @@ const ProjectModal: React.FC<ProjectModalProps> = ({
};
const handleDeleteConfirm = async () => {
if (project && project.id && onDelete) {
if (project && project.uid && onDelete) {
try {
await onDelete(project.id);
await onDelete(project.uid);
showSuccessToast(t('success.projectDeleted'));
setShowConfirmDialog(false);
handleClose();