Last active
April 13, 2022 18:15
-
-
Save tanner-west/d991b81d26c8538420a7e5dc313b170e to your computer and use it in GitHub Desktop.
This file contains 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
const getByA11yLabel = (wrapper, value) => wrapper.findWhere((node) => | |
node.prop('accessibilityLabel') === value); | |
const myButton = getByA11yLabel(wrapper, "my-button") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment