From 9b30dbfdd8e180544f2df1fb04f8727cb9879221 Mon Sep 17 00:00:00 2001 From: Donkoko Date: Tue, 25 Jul 2023 10:34:50 +0300 Subject: [PATCH] removed useless e2e test line, updated manual migrations readme --- app/database/manual-migrations/README.md | 1 - .../move-user-assets-to-personal-organization.server.ts | 5 +++++ test/e2e/smoke.spec.ts | 2 -- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/database/manual-migrations/README.md b/app/database/manual-migrations/README.md index 95bc5097c..c19297318 100644 --- a/app/database/manual-migrations/README.md +++ b/app/database/manual-migrations/README.md @@ -11,4 +11,3 @@ Inside this file are some manual migrations (seeds) that are required in order t Data updates are added at a later stage in the development and need to be run only if you are not doing a fresh install of Shelf 1. add-organizations-to-existing-users - create a PERSONAL organization for all users that don't have one yet -2. move-user-assets-to-personal-organization - Assets without organizationId are assigned to PERSONAL organization of the user that created them. diff --git a/app/database/manual-migrations/relationship-data-updates/move-user-assets-to-personal-organization.server.ts b/app/database/manual-migrations/relationship-data-updates/move-user-assets-to-personal-organization.server.ts index 1ad2035db..02b82825a 100644 --- a/app/database/manual-migrations/relationship-data-updates/move-user-assets-to-personal-organization.server.ts +++ b/app/database/manual-migrations/relationship-data-updates/move-user-assets-to-personal-organization.server.ts @@ -3,6 +3,11 @@ import { OrganizationType, PrismaClient } from "@prisma/client"; const prisma = new PrismaClient(); +/** IMPORTANT NOTE + * + * You dont need to run this migration yet. It is prepared for the future. + */ + async function seed() { try { // console.log(`Total of ${allUsers.length} users' roles updated`); diff --git a/test/e2e/smoke.spec.ts b/test/e2e/smoke.spec.ts index b6fb506d1..cd8d84f57 100644 --- a/test/e2e/smoke.spec.ts +++ b/test/e2e/smoke.spec.ts @@ -47,8 +47,6 @@ test("should allow you to make a category", async ({ page, account }) => { await page.click('[data-test-id="createNewCategory"]'); await expect(page).toHaveURL(/.*categories\/new/); - const focusedElementCat = await page.$(":focus"); - expect(await focusedElementCat?.getAttribute("name")).toBe("name"); await page .getByPlaceholder("Category name", { exact: true }) .fill(testCategory.title);