📖 Step 7: Testing & Quality#456 / 498
Flaky Test
Flaky Test
📖One-line summary
An unreliable test that passes or fails between runs even though the code hasn't changed.
✨Example
// 플래키 테스트
✓ 코드가 바뀌지 않았는데도 실행할 때마다 통과와 실패가 오락가락하는 불안정한 테스트
Tests: 1 passed
⚡Vibe coding prompt examples
>_
This Playwright test fails occasionally only in CI. Remove the fixed waits (waitForTimeout) and switch to reliable waiting.
>_
Make a table of common flaky-test causes (time, randomness, shared state between tests, network) with diagnosis and fixes for each.
>_
Write a script that runs the tests 20 times to detect which ones are flaky.
Try these prompts in your AI coding assistant!