vendredi 27 mai 2016

Unable to get content inside material-ui popover while testing

In my component I've a Popover which has two FloatingActionButtons inside it. But I'm not able to check the existence of them in my test case. Here is what I have tried:

const fbuttons = TestUtils.scryRenderedComponentsWithType(popover, FloatingActionButton);
console.log(fbuttons) //[]

Here popover is the rendered Popover component. Any help would be much appreciated.

Aucun commentaire:

Enregistrer un commentaire