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:
parent
7651677b71
commit
4fa2aa91bf
23 changed files with 278 additions and 108 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue