You can directly write these kind of tests with a full-featured testing framework, such as Mocha or Jest. Have a look at the Enzyme guidelines for more information on how to integrate them.
If you like to write your tests directly inside your stories, we also have an addon called specs.
With that, you can write test specs directly inside stories. Additionally, you also can use your CI server to run those tests.