Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion apps/modeling-commons-frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,15 @@ export default defineNuxtConfig({
experimental: { nativeSqlite: true },
database: {
type: "sqlite",
filename: ":memory:",
// Not ":memory:". Nuxt Content rewrites that filename to `{ name: "memory" }`,
// and db0's connectors only take their in-memory branch when the name is
// still ":memory:", so it silently becomes a file at `./.data/memory.sqlite`.
// Relative to the process CWD, which is a root-owned WORKDIR in the image
// while the process runs unprivileged, so the mkdir fails and every content
// query throws. Needs an absolute path that is writable both in the
// container and on a dev machine running the e2e suite in server mode.
// -- Omar Ibrahim, Aug 13 26
filename: "/tmp/contents.sqlite",
},
},

Expand Down
6 changes: 3 additions & 3 deletions apps/modeling-commons-frontend/tests/e2e/smoke.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const PAGES: Array<{ path: string; identity: RegExp }> = [
{ path: "/login", identity: /Log In|Welcome back/i },
{ path: "/signup", identity: /Sign Up/i },
{ path: "/reset-password", identity: /Reset password/i },
// { path: "/privacy", identity: /Privacy Policy/i },
// { path: "/terms-of-service", identity: /Terms of Service/i },
// { path: "/cookies", identity: /Cookie Policy/i },
{ path: "/privacy", identity: /Privacy Policy/i },
{ path: "/terms-of-service", identity: /Terms of Service/i },
{ path: "/cookies", identity: /Cookie Policy/i },
];

describe("smoke: public pages", async () => {
Expand Down