diora-web/e2e/env.js

19 lines
459 B
JavaScript
Raw Permalink Normal View History

// Shared constants between playwright.config.js and e2e/global-setup.js.
const PORT = 8000;
const BASE_URL = `http://127.0.0.1:${PORT}`;
const SERVER_ENV = {
...process.env,
DIORA_DB_NAME: 'e2e_test.sqlite3',
SECRET_KEY: 'e2e-test-secret-key',
DEBUG: 'True',
ALLOWED_HOSTS: 'localhost 127.0.0.1',
};
const TEST_USER = {
username: 'e2e_test_user',
password: 'e2e-test-pw-12345',
};
module.exports = { PORT, BASE_URL, SERVER_ENV, TEST_USER };