diff --git a/playwright.config.ts b/playwright.config.ts index 589bf8977e..97910b4293 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -1,5 +1,12 @@ import type { PlaywrightTestConfig } from '@playwright/test'; import { randomBytes } from 'crypto'; +import dotenv from 'dotenv'; + +if (process.env.NODE_ENV === 'development') { + console.log(`NODE_ENV=${process.env.NODE_ENV}`); + console.log('Using local .env file...'); + dotenv.config({ path: '.env' }); +} const signingSecret = randomBytes(32).toString('hex'); diff --git a/src/lib/prisma/seed.ts b/src/lib/prisma/seed.ts index b4fea1dae7..fe66fe0f9d 100644 --- a/src/lib/prisma/seed.ts +++ b/src/lib/prisma/seed.ts @@ -532,6 +532,7 @@ async function main() { { UserId: 4, OrganizationId: 1 }, // loren_hawthorne@sil.org - SIL { UserId: 5, OrganizationId: 2 }, // chris.kalaam@gmail.com - Kalaam { UserId: 6, OrganizationId: 1 }, // Scriptoria CI - SIL + { UserId: 6, OrganizationId: 2 }, // Scriptoria CI - Kalaam { UserId: 7, OrganizationId: 1 }, // 7dev7urandom@gmail.com - SIL { UserId: 8, OrganizationId: 1 } // aejones4gm@gmail.com - SIL ]; @@ -572,6 +573,7 @@ async function main() { { UserId: 4, RoleId: 3, OrganizationId: 1 }, // loren_hawthorne@sil.org - AppBuilder - SIL { UserId: 5, RoleId: 3, OrganizationId: 3 }, // chris.kalaam@gmail.com - AppBuilder - Kalaam { UserId: 6, RoleId: 2, OrganizationId: 1 }, // CI - OrgAdmin - SIL (this is so CI can send an invite email) + { UserId: 6, RoleId: 4, OrganizationId: 2 }, // CI - Author - Kalaam (this is so CI can test OrgAdmin permissions) { UserId: 7, RoleId: 1, OrganizationId: 1 }, // 7dev7urandom@gmail.com - SuperAdmin - SIL { UserId: 8, RoleId: 1, OrganizationId: 1 } // aejones4gm@gmail.com - SuperAdmin - SIL ]; diff --git a/src/routes/(authenticated)/+layout.svelte b/src/routes/(authenticated)/+layout.svelte index 356c459db9..1f9bb174d2 100644 --- a/src/routes/(authenticated)/+layout.svelte +++ b/src/routes/(authenticated)/+layout.svelte @@ -110,7 +110,7 @@ bind:this={drawerToggle} /> -