You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QA uses WDIO, and with some of the ways WDIO is formatted, we use unnamed functions as our `it` functions.
We CAN use arrow functions, but that kills the ability to use `this` in our tests. Which we use a lot.
'testing-library/no-await-sync-query': 'off',// All @testing-library/webdriverio queries are async (https://testing-library.com/docs/webdriverio-testing-library/intro/)
20
20
'testing-library/prefer-screen-queries': 'off',// We use browser instead of screen for @testing-library/webdriverio
21
-
'@babel/no-unused-expressions': 'off'// to allow expressions like this: tree.expect(await (await $(tree.MBTpageObjects.getBCButton())).isDisplayed()).to.be.true
21
+
'@babel/no-unused-expressions': 'off',// to allow expressions like this: tree.expect(await (await $(tree.MBTpageObjects.getBCButton())).isDisplayed()).to.be.true
22
+
'func-names': 'off'// to allow for how WDIO does "it" functions: "it('Login', async function () {". We need "this" and we can keep "this" by using "unnamed async function"
0 commit comments