Skip to content
Draft
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
3 changes: 3 additions & 0 deletions cypress/cypress.config.mobile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export default defineConfig({
screenshotsFolder: 'screenshots/mobile',
env: {
...baseConfig.e2e?.env,
},
expose: {
...baseConfig.e2e?.expose,
isMobile: true,
},
},
Expand Down
3 changes: 1 addition & 2 deletions cypress/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ export default defineConfig({
// Safari support
experimentalWebKitSupport: true,
env: {
// slow down execution more in CI to avoid flaky tests
commandDelay: defaultMs,
// Server-side only admin credentials (not exposed to client bundle)
homeserverAdminUrl: process.env['HOMESERVER_ADMIN_URL'] || 'http://localhost:6288/generate_signup_token',
homeserverAdminPassword: process.env['HOMESERVER_ADMIN_PASSWORD'] || 'admin',
},
expose: {
commandDelay: defaultMs,
ci: process.env['CI'],
isMobile: false,
},
Expand Down
1 change: 1 addition & 0 deletions cypress/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "../tsconfig.json",
"compilerOptions": {
"sourceMap": false,
"rootDir": ".",
"outDir": "../dist/out-tsc",
"allowJs": true,
"types": ["cypress", "node"],
Expand Down
5 changes: 5 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ const eslintConfig = [
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'react-hooks/set-state-in-effect': 'off', // Allow setState in effects
// Keep latest-callback/id refs assigned during render. Moving those writes
// into effects would delay the update and change stale-closure behaviour.
'react-hooks/refs': 'off',
// Existing useCallback/useMemo deps are intentional; do not force compiler-inferred lists.
'react-hooks/preserve-manual-memoization': 'off',
'import/first': 'error',
'@stylistic/padding-line-between-statements': [
'error',
Expand Down
Loading
Loading