Created
September 19, 2021 09:41
-
-
Save majirosstefan/f0c818c3167a059236bc502146b43da5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {TestScope} from 'cavy'; | |
export default function (scope: TestScope) { | |
// ๐ | |
const screen = (await scope.findComponent('CameraScanningScreen')) as any; | |
await scope.pause(1000); | |
// ๐ now you can call the method directly | |
screen.onSuccessScan({data: "vaccCY2x..."}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment