Merge branch 'main' into feat/journal-post-form
# Conflicts: # scripts/test-form-config.sh # scripts/test-post.sh
This commit is contained in:
@@ -13,6 +13,14 @@ module.exports = async function globalSetup() {
|
||||
});
|
||||
}
|
||||
|
||||
// Local test-account defaults (mirror the Makefile) so direct `npx playwright
|
||||
// test` runs are self-contained without needing GRAV_TEST_* in .env.
|
||||
if (!process.env.GRAV_TEST_USER) process.env.GRAV_TEST_USER = 'testrunner';
|
||||
if (!process.env.GRAV_TEST_PASS) process.env.GRAV_TEST_PASS = 'Testpass1234';
|
||||
|
||||
// Ensure the local test account exists (idempotent; never committed).
|
||||
execSync('make test-account', { cwd: path.join(__dirname, '..'), stdio: 'inherit' });
|
||||
|
||||
// Ensure demo content is loaded (italy-2026-demo trip + stories + GPX files)
|
||||
execSync('make demo-load', { cwd: path.join(__dirname, '..'), stdio: 'inherit' });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user