Commit ce2aa85
authored
fix: comprehensive e2e test reliability improvements (#33)
* docs: update backend logging documentation and rename to LFX Projects
- Document dual logger architecture (serverLogger + httpLogger)
- Add LOG_LEVEL environment variable configuration
- Update security redaction paths for both loggers
- Add comprehensive error handling integration examples
- Document server startup logging with environment details
- Add logger export and reusability patterns
- Update production considerations with conditional stack traces
- Enhance formatting configuration documentation
- Add clear guidance on when to use each logger type
- Rename application from "LFX Projects Self-Service" to "LFX Projects"
- Update all references and branding to reflect new name
- Update authentication documentation with new application name
Generated with [Claude Code](https://claude.ai/code)
Signed-off-by: Asitha de Silva <[email protected]>
* fix: address pr comments and fix lfx v2 service url
Signed-off-by: Asitha de Silva <[email protected]>
* fix: comprehensive e2e test reliability improvements
- Added data-testid="header-projects-text" for reliable header text targeting
- Fixed strict mode violations by replacing getByText with getByTestId selectors
- Updated all tests to use consistent "aswf" search instead of flaky "Foundation" search
- Fixed project logo visibility assertions using toBeAttached() instead of toBeVisible()
- Improved authentication helper with better error handling and retry logic
- Updated all project card navigation tests to search for specific projects before clicking
- Fixed responsive design test assertions for mobile/tablet viewports
- Removed assumptions about project card order in favor of explicit search-based targeting
All 86 e2e tests now pass consistently on Chrome, with Firefox showing only intermittent
page load timeouts rather than test logic failures.
Signed-off-by: Asitha de Silva <[email protected]>
* tests: fix flaky tests
Signed-off-by: Asitha de Silva <[email protected]>
* fix: improve E2E test stability across browsers
- Fix flaky Angular signals test with better element-based waiting
- Replace networkidle waits with specific element visibility checks
- Add Firefox-specific timeout configurations for better stability
- Increase timeouts for Firefox browser (20s elements, 45s navigation)
- Fix URL pattern to accept hyphenated project slugs ([\w-]+ vs \w+)
- Replace flaky .first().click() with text-based targeting
- Update check-headers.sh and VS Code settings
Addresses intermittent test failures in both Chromium and Firefox
by using more reliable waiting strategies and robust element selection.
All 86 tests now pass consistently in Chromium.
🤖 Generated with [Claude Code](https://claude.ai/code)
Signed-off-by: Asitha de Silva <[email protected]>
* feat: improve E2E test stability with explicit wait conditions
- Add waitUntil: 'domcontentloaded' to all page.goto() calls
- Ensures page is ready before proceeding with tests
- Reduces flakiness on slower network connections
Signed-off-by: Asitha de Silva <[email protected]>
* fix: exclude test artifacts from Prettier formatting checks
- Add playwright-report/ and test-results/ to .prettierignore
- Prevents pre-commit hook failures from untracked test files
- Also exclude dist/ and .angular/ build directories
Resolves pre-commit hook failures when Playwright test artifacts exist.
Signed-off-by: Asitha de Silva <[email protected]>
* test: fix mobile chrome naming
Signed-off-by: Asitha de Silva <[email protected]>
* refactor: add header text
Signed-off-by: Asitha de Silva <[email protected]>
---------
Signed-off-by: Asitha de Silva <[email protected]>
Signed-off-by: Asitha de Silva <[email protected]>1 parent e955522 commit ce2aa85
File tree
13 files changed
+205
-136
lines changed- .github/workflows
- .vscode
- apps/lfx-pcc
- e2e
- helpers
- docs/architecture/testing
13 files changed
+205
-136
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
4 | 14 | | |
5 | 15 | | |
6 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | | - | |
| 172 | + | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
250 | | - | |
| 248 | + | |
| 249 | + | |
251 | 250 | | |
252 | 251 | | |
253 | 252 | | |
| |||
256 | 255 | | |
257 | 256 | | |
258 | 257 | | |
259 | | - | |
| 258 | + | |
260 | 259 | | |
261 | 260 | | |
262 | 261 | | |
263 | 262 | | |
264 | 263 | | |
265 | | - | |
266 | 264 | | |
267 | 265 | | |
268 | 266 | | |
269 | | - | |
270 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
271 | 270 | | |
272 | 271 | | |
273 | 272 | | |
| |||
277 | 276 | | |
278 | 277 | | |
279 | 278 | | |
280 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
281 | 291 | | |
282 | 292 | | |
283 | 293 | | |
284 | 294 | | |
285 | 295 | | |
286 | | - | |
287 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
288 | 300 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
| 301 | + | |
| 302 | + | |
301 | 303 | | |
302 | 304 | | |
303 | 305 | | |
| |||
320 | 322 | | |
321 | 323 | | |
322 | 324 | | |
323 | | - | |
324 | 325 | | |
325 | 326 | | |
326 | 327 | | |
| |||
336 | 337 | | |
337 | 338 | | |
338 | 339 | | |
339 | | - | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
353 | 352 | | |
354 | 353 | | |
355 | 354 | | |
356 | 355 | | |
357 | 356 | | |
358 | 357 | | |
359 | 358 | | |
360 | | - | |
| 359 | + | |
361 | 360 | | |
362 | 361 | | |
363 | 362 | | |
| |||
387 | 386 | | |
388 | 387 | | |
389 | 388 | | |
390 | | - | |
| 389 | + | |
391 | 390 | | |
392 | 391 | | |
393 | 392 | | |
| |||
0 commit comments