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
* refactor: migrate Appium helper to ESM
- Convert require() to import statements
- Change webdriverio from dynamic require to static import
- Import webdriverio as namespace (import * as webdriverio)
- Import all dependencies at the top of the file:
- ElementNotFound from './errors/ElementNotFound.js'
- dontSeeElementError from './errors/ElementAssertion.js'
- Remove inline require statements from methods:
- dontSeeElement()
- seeElement()
- waitForVisible()
- waitForInvisible()
- Use Locator.build() instead of new Locator() for ESM compatibility
- Maintain export default Appium at the end
- All imports use .js extensions for ESM compliance
Verified:
- Module loads successfully
- No require() statements remaining
- Tests run without errors
* enable appium tests
* fix: initialize chai.should() in Appium tests
The test was failing with 'Cannot read properties of undefined (reading "be")'
because chai's should assertion style was not initialized.
Added chai.should() call after imports to enable should-style assertions
throughout the test file.
Fixes test: device lock : #seeDeviceIsLocked, #seeDeviceIsUnlocked
0 commit comments