'How I can allow browser.pause? WDIO (wdio/no-pause) (plugin:wdio/recommended)

I need to use browser.pause, but I get error in ESLint. How I can allow browser.pause in eslintrc.json? Or maybe you know another way for resolving this?

Error: Unexpected browser.pause() not allowed (wdio/no-pause)

Screenshot with error:

enter image description here



Solution 1:[1]

  1. create .eslintrc in the root of your project.
  2. Add some config as:

 {
        "plugins": [
          "wdio"
        ],
        "extends": [
          "plugin:wdio/recommended",
          "eslint:recommended"
        ],
        "parserOptions": {
          "ecmaVersion": "latest",
          "sourceType": "module"
        },
        "env": {
          "es6": true,
          "mocha": true,
          "node": true
        },
        "rules": {
          "no-trailing-whitespace":false
          }
    
      }

for me this fixed the issue with browser.pause()

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1