bmcmahen / react-wysiwyg

retain some control over contenteditable input
169 stars 37 forks source link

Add basic e2e test #17

Closed dtuite closed 9 years ago

dtuite commented 9 years ago

Running nightwatch tests requires that the latest selenium webdriver JAR be present at :project_root:/bin/selenium-server-standaline.jar. See the nightwatch Getting started page for more information.

Use npm run e2e to run the end to end tests.

dtuite commented 9 years ago

I'd like to write a bunch more of these because I find I can't adequately write more than low level unit tests with React.addons.TestUtils.Simulate. I think it's important that the behaviour of the component is tested in context.

Let me know what you think.

bmcmahen commented 9 years ago

cool -- unfamiliar with this. will take a look though, thanks.

dtuite commented 9 years ago

All it does so far is type into your example page and assert that the number of chars remaining is decreasing as expected. I can write more comprehensive tests for other functionality.

Let me know if you have any questions.

bmcmahen commented 9 years ago

This looks great. Thanks.

dtuite commented 9 years ago

Cool. If things go to plan I'll have tests for other functionality coming soon.