
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@codeceptjs/ui
Advanced tools
A comprehensive, modern, interactive test development environment for [CodeceptJS](https://codecept.io).
A comprehensive, modern, interactive test development environment for CodeceptJS.
Professional IDE-like experience for CodeceptJS test development with comprehensive Monaco Editor integration, real-time file watching, dynamic browser management, and enterprise-grade network compatibility.
Complete test management interface with TodoMVC examples showing test statistics, file organization, and real-time status updates
Professional IDE-like split view showing test list on the left and selected test preview on the right - perfect for code review and test exploration
Full-featured Monaco Editor with syntax highlighting, modern async/await CodeceptJS patterns, and comprehensive how-to-guide
Smart autocomplete with CodeceptJS method suggestions and real-time syntax validation
Live test execution with detailed results, timing information, error reporting, and updated statistics
Comprehensive settings panel with file watching, browser modes, helper configuration, and editor integration
Fully responsive mobile interface that adapts beautifully to tablets and smartphones while maintaining all functionality
The demonstrations above showcase real CodeceptUI features running live with the included TodoMVC test examples:
✅ Test Management: Complete test suite organization with 17 tests across multiple files
✅ Real-time Statistics: Live tracking of successful, failed, skipped, and pending tests
✅ IDE Split View: Professional dual-pane layout for test browsing and code preview
✅ Monaco Editor: Full-featured code editor with syntax highlighting and autocomplete
✅ Live Execution: Real-time test running with detailed error reporting and timing
✅ Advanced Settings: File watching, browser configuration, and helper management
✅ Mobile Responsive: Fully responsive design that works perfectly on all screen sizes
✅ Modern UI: Clean, professional interface with excellent user experience
Full-featured in-browser code editing with modern CodeceptJS 3.x support
Original Monaco Editor integration
Live Monaco Editor with modern async/await syntax highlighting and intelligent code completion
Key Editor Features:
async/await
syntaxSupported Modern CodeceptJS Patterns:
// Modern async/await syntax with full autocomplete support
Scenario('login with modern CodeceptJS', async ({ I }) => {
await I.amOnPage('/login');
await I.fillField('email', 'user@example.com');
await I.click('Login');
await I.waitForVisible('.dashboard');
await I.see('Welcome Dashboard');
});
// Data-driven testing support
Data([
{ user: 'admin', password: 'secret' },
{ user: 'guest', password: 'guest123' }
]).Scenario('data-driven login test', async ({ I, current }) => {
await I.amOnPage('/login');
await I.fillField('username', current.user);
await I.fillField('password', current.password);
});
// Modern hooks and configuration
Before(async ({ I }) => {
await I.amOnPage('/setup');
});
Scenario.only('focused test for debugging', async ({ I }) => {
// Only this test will run
});
Enterprise-grade compatibility with modern development workflows
Headless mode indicator and settings
Window mode indicator and settings
Page objects browser with syntax highlighting and source viewing
Comprehensive Performance Optimizations:
Modern User Interface:
Page objects browser and source viewer
Requires CodeceptJS 3 to be installed
Install CodeceptUI in a project where CodeceptJS is already used
npm i @codeceptjs/ui --save
Run CodeceptUI in application mode (recommended for development, local debug):
npx codecept-ui --app
Uses codecept.conf.js
config from the current directory.
If needed, provide a path to config file with --config
option:
npx codecept run --config tests/codecept.conf.js
Run CodeceptUI as a web server (recommended for headless mode, remote debug):
npx codecept-ui
Open http://localhost:3333
to see all tests and run them.
This version addresses 10 critical GitHub issues that were preventing CodeceptUI from working effectively with modern development workflows:
// Professional autocomplete with modern CodeceptJS methods
const suggestions = {
playwright: [
'I.amOnPage(url)', 'I.click(locator)', 'I.fillField(field, value)',
'I.waitForVisible(locator, sec)', 'I.grabTextFrom(locator)'
],
structure: [
'Scenario(\'name\', async ({ I }) => {})',
'Before(async ({ I }) => {})', 'Data().Scenario(...)'
]
};
Uses codecept.conf.js
config from the current directory.
If needed, provide a path to config file with --config
option:
npx codecept run --config tests/codecept.conf.js
CodeceptUI now supports flexible port configuration with both modern and legacy environment variables:
# Modern environment variables (recommended)
export applicationPort=3000
export wsPort=4000
npx codecept-ui --app
# Legacy environment variables (backward compatible)
export PORT=3000
export WS_PORT=4000
npx codecept-ui --app
# Command line options (highest priority)
npx codecept-ui --app --port=3000 --wsPort=4000
CORS Configuration:
# Allow custom origins
export CORS_ORIGIN="https://my-domain.com"
npx codecept-ui
Reverse Proxy Support:
# Nginx configuration example
location /codeceptui/ {
proxy_pass http://localhost:3333/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
See CONTRIBUTING.md
CodeceptUI uses the debug package to output debug information. This is useful to troubleshoot problems or just to see what CodeceptUI is doing. To turn on debug information do
# verbose: get all debug information
DEBUG=codeceptjs:* npx codecept-ui
# just get debug output of one module
DEBUG=codeceptjs:codeceptjs-factory npx codecept-ui
Thanks all for the contributions!
FAQs
A comprehensive, modern, interactive test development environment for [CodeceptJS](https://codecept.io).
The npm package @codeceptjs/ui receives a total of 17,336 weekly downloads. As such, @codeceptjs/ui popularity was classified as popular.
We found that @codeceptjs/ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.