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

@ -234,8 +234,8 @@ const Layout: React.FC<LayoutProps> = ({
const handleSaveProject = async (projectData: Project) => {
try {
if (projectData.id) {
await updateProject(projectData.id, projectData);
if (projectData.uid) {
await updateProject(projectData.uid, projectData);
} else {
await createProject(projectData);
}
@ -474,12 +474,12 @@ const Layout: React.FC<LayoutProps> = ({
isOpen={isProjectModalOpen}
onClose={closeProjectModal}
onSave={handleSaveProject}
onDelete={async (projectId) => {
onDelete={async (projectUid) => {
try {
const { deleteProject } = await import(
'./utils/projectsService'
);
await deleteProject(projectId);
await deleteProject(projectUid);
// Update global projects store
const currentProjects =
@ -488,7 +488,7 @@ const Layout: React.FC<LayoutProps> = ({
.getState()
.projectsStore.setProjects(
currentProjects.filter(
(p) => p.id !== projectId
(p) => p.uid !== projectUid
)
);