libreoffice-online/cypress_test/.eslintrc
Tamás Zolnai af76b48460 cypress: add a custom ESLint rule against cy.get().contains() usage.
Since cypress retries only the last command, it's better to use
the compact cy.contains(selector, content) version, instead of
cy.get(selector).contains(content) call.

Change-Id: Ie1f4c17bbf736058ecf6bd996b46384fdff19446
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93081
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-28 18:42:56 +02:00

13 lines
No EOL
251 B
Text

{
"extends": "../loleaflet/.eslintrc",
"plugins": ["cypress-rules"],
"rules": {
"cypress-rules/no-get-contains-chain": 2
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
}
},
}