Files
openobserve/tests/ui-testing/playwright-tests/Functions
Shrinath RaoandClaude Opus 4.6 1824dadbb2 test: fix JS function test execution workflow and debounce timing (#10660)
## Summary
- Fixed `testFunctionExecution()` workflow order — was clicking "Test
Function" button (fires API immediately) before entering test events,
then clicking "Run Query" (wrong button)
- Increased post-typing wait from 500ms to 1000ms in
`enterFunctionCode()` to safely clear the Monaco editor's 500ms debounce
for v-model sync
- Simplified spec test to use default test events instead of broken
custom event entry

## Test plan
- [ ] Run `npx playwright test
playwright-tests/Functions/js-transform-type.spec.js --grep "P1: JS
function execution and error handling"` and verify it passes
- [ ] Verify P0 function creation tests still pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 15:33:48 +08:00
..