Skip to content

Instantly share code, notes, and snippets.

@majirosstefan
Created September 19, 2021 09:41
Show Gist options
  • Save majirosstefan/f0c818c3167a059236bc502146b43da5 to your computer and use it in GitHub Desktop.
Save majirosstefan/f0c818c3167a059236bc502146b43da5 to your computer and use it in GitHub Desktop.
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