Skip to content

Commit 4c2d37a

Browse files
committed
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
1 parent a584ef7 commit 4c2d37a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/helper/Appium_test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import * as codeceptjs from '../../lib/index.js'
1111
const __filename = fileURLToPath(import.meta.url)
1212
const __dirname = dirname(__filename)
1313

14+
chai.should()
1415
const expect = chai.expect
1516
const assert = chai.assert
1617
global.codeceptjs = codeceptjs.default || codeceptjs

0 commit comments

Comments
 (0)