
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
eslint-plugin-ui-testing
Advanced tools
ESLint rules for UI testing tools WebdriverIO, Cypress, TestCafe, Playwright, Puppeteer
ESLint plugin that helps following best practices when writing UI tests. It supports the following automation tools (in alphabetical order):
Prerequisite:
npm i eslint --save-dev
)eslint-plugin-ui-testing
:npm i eslint-plugin-ui-testing --save-dev
ui-testing
plugin to the .eslintrc
configuration file.{
"plugins": ["ui-testing"]
}
plugin:ui-testing/cypress
plugin:ui-testing/playwright
plugin:ui-testing/puppeteer
plugin:ui-testing/testcafe
plugin:ui-testing/webdriverio
Example:
{
"extends": ["plugin:ui-testing/webdriverio"]
}
You can customize specific rules in the .eslintrc
configuration file.
{
"rules": {
"ui-testing/no-disabled-tests": "error", // default = warn
"ui-testing/no-css-page-layout-selector": ["warn", "webdriverio"] // default = error
}
}
3
(under Usage
), then these customized rules will override the default.Rule | Default | Ruleset |
---|---|---|
missing-assertion-in-test | error | |
no-absolute-url | warn | |
no-assertions-in-hooks | error | |
no-browser-commands-in-tests | warn | |
no-css-page-layout-selector | error | |
no-disabled-tests | warn | |
no-focused-tests | warn | |
no-hard-wait | error | |
no-implicit-wait | error | |
no-link-text-selector | error | |
no-tag-name-selector | error | |
no-wait-in-tests | warn | |
no-xpath-page-layout-selector | error | |
no-xpath-selector | warn |
Note: All automation tool specific rulesets include the recommended ruleset.
FAQs
ESLint rules for UI testing tools WebdriverIO, Cypress, TestCafe, Playwright, Puppeteer
The npm package eslint-plugin-ui-testing receives a total of 4,828 weekly downloads. As such, eslint-plugin-ui-testing popularity was classified as popular.
We found that eslint-plugin-ui-testing demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.