Closed kahneraja closed 8 years ago
To run these tests...
npm install
npm run dev
in a new console....
npm run test-ui
👍
This wants me to install a JDK (which I don't have on this laptop) before running. However, the code looks good to me.
FYI, because we're using React, we actually don't have to use Selenium at all. Using either of these libraries would let us use a regular test framework (Mocha, Ava, etc.) to test UI:
This PR seems totally fine too, but just thought I'd let you know because the tests can run way faster and be easier to write without relying on Selenium.
Thanks guys.
I did take a look at enzyme with chai but im wanting to ignore a "unit test" strategy because i find it doesnt cover the orchestration of components.
Given we dont really have much complex unit logic i through getting a real dom with selenium would be more reliable
Ill add another few more tests, reorganise and submit
Got it, makes sense
Addresses #44