Overview of CodeceptJS AI capabilities
CodeceptJS integrates AI providers (such as OpenAI, Anthropic, and Google) to act as a testing co-pilot. It improves automated testing by sharing the current page's HTML context (minified and stripped of non-interactive elements) with the LLM to generate semantic locators and suggest fixes. Key capabilities include:
- Assisting in writing tests during
pause()or interactive shell mode. - Self-healing failing tests on CI by identifying new locators for changed elements.
- Analyzing test failures to provide detailed explanations and suggested fixes.