wdio-ocr-service
Version:
A WebdriverIO service that is using Tesseract OCR for Appium Native App tests.
16 lines (11 loc) • 357 B
text/typescript
import ocrKeys from '../../utils/ocrKeys'
const globalAny:any = global
describe('utils - ocrKeys', () => {
it('should call the performActions with the correct keys', async () => {
globalAny.driver = {
performActions: jest.fn()
}
await ocrKeys('123')
expect(globalAny.driver.performActions).toHaveBeenCalledWithSnapshot()
})
})