Skip to content

Commit

Permalink
removed useless e2e test line, updated manual migrations readme
Browse files Browse the repository at this point in the history
  • Loading branch information
DonKoko committed Jul 25, 2023
1 parent 67d8916 commit 9b30dbf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/database/manual-migrations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down
2 changes: 0 additions & 2 deletions test/e2e/smoke.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9b30dbf

Please sign in to comment.