From bd07d56ecfebc8807cbb958aa35ef545dfc7efa0 Mon Sep 17 00:00:00 2001 From: Nick Salloum Date: Thu, 19 Dec 2019 12:54:18 -0400 Subject: [PATCH] Adds testId prop and useage to documentation --- docs/index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/index.md b/docs/index.md index 9131af21..c2f2b006 100644 --- a/docs/index.md +++ b/docs/index.md @@ -136,6 +136,11 @@ import ReactModal from 'react-modal'; data={ { background: "green" } /* Additional data attributes (optional). */} + + testId={ + "" + /* String testId that renders a data-testid attribute in the DOM, + useful for testing. */} overlayRef={ setOverlayRef