Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@necolas
Last active April 22, 2016 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save necolas/ab2c48cca03af052912bc2f1f633fb56 to your computer and use it in GitHub Desktop.
Save necolas/ab2c48cca03af052912bc2f1f633fb56 to your computer and use it in GitHub Desktop.
import styles from './styles.css';
import testIDs from './testIDs';
export render = (text) => (
<button className={styles.button} data-test-id={testsIDs.button}>
<span className={styles.icon}></span>
{text}
</button>
);
module.exports = {
button: 'button'
};
import testIDs from 'button/testIDs';
const button = findElementByTestId(testIDs.button);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment