Created
April 13, 2020 22:27
-
-
Save daedalius/d18def9c09d2b1deb9dbef0819546fcc to your computer and use it in GitHub Desktop.
Cypress + Storybook. #5
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
const selectors = { | |
innerInput: '.react-datepicker__input-container input', | |
}; | |
it('renders text field.', () => { | |
cy.window().then((win) => { | |
ReactDOM.render( | |
<win.Datepicker />, | |
win.document.querySelector(rootToMountSelector) | |
); | |
}); | |
cy | |
.get(selectors.innerInput) | |
.should('be.visible'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment