Skip to content

Instantly share code, notes, and snippets.

@jessebeach
Created February 3, 2017 23:30
Show Gist options
  • Save jessebeach/4d687a3404d01b2336584d03c8f785d4 to your computer and use it in GitHub Desktop.
Save jessebeach/4d687a3404d01b2336584d03c8f785d4 to your computer and use it in GitHub Desktop.
isNonInteractiveElement
JSX Components (no tagName)
✓ should identify them as interactive elements (3ms)
non-interactive elements
✓ should identify `a` as a non-interactive element (1ms)
✓ should identify `area` as a non-interactive element (1ms)
✓ should identify `article` as a non-interactive element
✓ should identify `dd` as a non-interactive element (1ms)
✓ should identify `dfn` as a non-interactive element
✓ should identify `dt` as a non-interactive element
✓ should identify `fieldset` as a non-interactive element
✓ should identify `figure` as a non-interactive element (1ms)
✓ should identify `frame` as a non-interactive element
✓ should identify `h1` as a non-interactive element
✓ should identify `h2` as a non-interactive element
✓ should identify `h3` as a non-interactive element
✓ should identify `h4` as a non-interactive element (1ms)
✓ should identify `h5` as a non-interactive element
✓ should identify `h6` as a non-interactive element
✓ should identify `hr` as a non-interactive element
✓ should identify `img` as a non-interactive element
✓ should identify `input[type="hidden"]` as a non-interactive element (3ms)
✓ should identify `li` as a non-interactive element
✓ should identify `main` as a non-interactive element
✓ should identify `nav` as a non-interactive element (1ms)
✓ should identify `ol` as a non-interactive element
✓ should identify `table` as a non-interactive element
✓ should identify `tbody` as a non-interactive element
✓ should identify `tfoot` as a non-interactive element (1ms)
✓ should identify `thead` as a non-interactive element
✓ should identify `tr` as a non-interactive element
✓ should identify `ul` as a non-interactive element
non-interactive role elements
✓ should identify `div[role="alert"]` as a non-interactive element
✓ should identify `div[role="alertdialog"]` as a non-interactive element
✓ should identify `div[role="application"]` as a non-interactive element (1ms)
✓ should identify `div[role="article"]` as a non-interactive element
✓ should identify `div[role="banner"]` as a non-interactive element
✓ should identify `div[role="cell"]` as a non-interactive element
✓ should identify `div[role="complementary"]` as a non-interactive element
✓ should identify `div[role="contentinfo"]` as a non-interactive element (1ms)
✓ should identify `div[role="definition"]` as a non-interactive element (7ms)
✓ should identify `div[role="dialog"]` as a non-interactive element (1ms)
✓ should identify `div[role="directory"]` as a non-interactive element
✓ should identify `div[role="doc-abstract"]` as a non-interactive element
✓ should identify `div[role="doc-acknowledgments"]` as a non-interactive element
✓ should identify `div[role="doc-afterword"]` as a non-interactive element (1ms)
✓ should identify `div[role="doc-appendix"]` as a non-interactive element
✓ should identify `div[role="doc-backlink"]` as a non-interactive element
✓ should identify `div[role="doc-biblioentry"]` as a non-interactive element (1ms)
✓ should identify `div[role="doc-bibliography"]` as a non-interactive element
✓ should identify `div[role="doc-biblioref"]` as a non-interactive element
✓ should identify `div[role="doc-chapter"]` as a non-interactive element
✓ should identify `div[role="doc-colophon"]` as a non-interactive element (1ms)
✓ should identify `div[role="doc-conclusion"]` as a non-interactive element
✓ should identify `div[role="doc-cover"]` as a non-interactive element
✓ should identify `div[role="doc-credit"]` as a non-interactive element
✓ should identify `div[role="doc-credits"]` as a non-interactive element (1ms)
✓ should identify `div[role="doc-dedication"]` as a non-interactive element
✓ should identify `div[role="doc-endnote"]` as a non-interactive element (1ms)
✓ should identify `div[role="doc-endnotes"]` as a non-interactive element
✓ should identify `div[role="doc-epigraph"]` as a non-interactive element (8ms)
✓ should identify `div[role="doc-epilogue"]` as a non-interactive element (1ms)
✓ should identify `div[role="doc-errata"]` as a non-interactive element
✓ should identify `div[role="doc-example"]` as a non-interactive element
✓ should identify `div[role="doc-footnote"]` as a non-interactive element
✓ should identify `div[role="doc-foreword"]` as a non-interactive element (1ms)
✓ should identify `div[role="doc-glossary"]` as a non-interactive element
✓ should identify `div[role="doc-glossref"]` as a non-interactive element
✓ should identify `div[role="doc-index"]` as a non-interactive element (1ms)
✓ should identify `div[role="doc-introduction"]` as a non-interactive element
✓ should identify `div[role="doc-noteref"]` as a non-interactive element (1ms)
✓ should identify `div[role="doc-notice"]` as a non-interactive element
✓ should identify `div[role="doc-pagebreak"]` as a non-interactive element
✓ should identify `div[role="doc-pagelist"]` as a non-interactive element
✓ should identify `div[role="doc-part"]` as a non-interactive element (1ms)
✓ should identify `div[role="doc-preface"]` as a non-interactive element
✓ should identify `div[role="doc-prologue"]` as a non-interactive element
✓ should identify `div[role="doc-pullquote"]` as a non-interactive element (1ms)
✓ should identify `div[role="doc-qna"]` as a non-interactive element
✓ should identify `div[role="doc-subtitle"]` as a non-interactive element (1ms)
✓ should identify `div[role="doc-tip"]` as a non-interactive element (11ms)
✓ should identify `div[role="doc-toc"]` as a non-interactive element (1ms)
✓ should identify `div[role="document"]` as a non-interactive element (1ms)
✓ should identify `div[role="feed"]` as a non-interactive element (1ms)
✓ should identify `div[role="figure"]` as a non-interactive element
✓ should identify `div[role="grid"]` as a non-interactive element (1ms)
✓ should identify `div[role="group"]` as a non-interactive element (1ms)
✓ should identify `div[role="heading"]` as a non-interactive element
✓ should identify `div[role="img"]` as a non-interactive element (1ms)
✓ should identify `div[role="list"]` as a non-interactive element (1ms)
✓ should identify `div[role="listbox"]` as a non-interactive element (1ms)
✓ should identify `div[role="listitem"]` as a non-interactive element
✓ should identify `div[role="log"]` as a non-interactive element (1ms)
✓ should identify `div[role="main"]` as a non-interactive element
✓ should identify `div[role="marquee"]` as a non-interactive element (1ms)
✓ should identify `div[role="math"]` as a non-interactive element
✓ should identify `div[role="menu"]` as a non-interactive element
✓ should identify `div[role="menubar"]` as a non-interactive element
✓ should identify `div[role="navigation"]` as a non-interactive element (1ms)
✓ should identify `div[role="note"]` as a non-interactive element
✓ should identify `div[role="presentation"]` as a non-interactive element (15ms)
✓ should identify `div[role="progressbar"]` as a non-interactive element
✓ should identify `div[role="radiogroup"]` as a non-interactive element
✓ should identify `div[role="region"]` as a non-interactive element
✓ should identify `div[role="row"]` as a non-interactive element
✓ should identify `div[role="rowgroup"]` as a non-interactive element
✓ should identify `div[role="search"]` as a non-interactive element
✓ should identify `div[role="separator"]` as a non-interactive element
✓ should identify `div[role="scrollbar"]` as a non-interactive element
✓ should identify `div[role="status"]` as a non-interactive element
✓ should identify `div[role="table"]` as a non-interactive element
✓ should identify `div[role="tablist"]` as a non-interactive element
✓ should identify `div[role="tabpanel"]` as a non-interactive element
✓ should identify `div[role="term"]` as a non-interactive element
✓ should identify `div[role="timer"]` as a non-interactive element
✓ should identify `div[role="toolbar"]` as a non-interactive element
✓ should identify `div[role="tooltip"]` as a non-interactive element
✓ should identify `div[role="tree"]` as a non-interactive element
✓ should identify `div[role="treegrid"]` as a non-interactive element (1ms)
interactive elements
✓ should NOT identify `button` as a non-interactive element (6ms)
✓ should NOT identify `form` as a non-interactive element
✓ should NOT identify `option` as a non-interactive element
✓ should NOT identify `select` as a non-interactive element (1ms)
✓ should NOT identify `textarea` as a non-interactive element
✓ should NOT identify `a[href="#"]` as a non-interactive element
✓ should NOT identify `area[href="#"]` as a non-interactive element
✓ should NOT identify `input` as a non-interactive element
✓ should NOT identify `input[type="button"]` as a non-interactive element
✓ should NOT identify `input[type="checkbox"]` as a non-interactive element
✓ should NOT identify `input[type="color"]` as a non-interactive element (1ms)
✓ should NOT identify `input[type="date"]` as a non-interactive element
✓ should NOT identify `input[type="datetime"]` as a non-interactive element (1ms)
✓ should NOT identify `input[type="email"]` as a non-interactive element
✓ should NOT identify `input[type="file"]` as a non-interactive element
✓ should NOT identify `input[type="image"]` as a non-interactive element (2ms)
✓ should NOT identify `input[type="month"]` as a non-interactive element (1ms)
✓ should NOT identify `input[type="number"]` as a non-interactive element
✓ should NOT identify `input[type="password"]` as a non-interactive element
✓ should NOT identify `input[type="radio"]` as a non-interactive element (1ms)
✓ should NOT identify `input[type="range"]` as a non-interactive element (12ms)
✓ should NOT identify `input[type="reset"]` as a non-interactive element (1ms)
✓ should NOT identify `input[type="search"]` as a non-interactive element
✓ should NOT identify `input[type="submit"]` as a non-interactive element
✓ should NOT identify `input[type="tel"]` as a non-interactive element
✓ should NOT identify `input[type="text"]` as a non-interactive element
✓ should NOT identify `input[type="time"]` as a non-interactive element
✓ should NOT identify `input[type="url"]` as a non-interactive element
✓ should NOT identify `input[type="week"]` as a non-interactive element
interactive role elements
✓ should NOT identify `div[role="button"]` as a non-interactive element
✓ should NOT identify `div[role="checkbox"]` as a non-interactive element
✓ should NOT identify `div[role="columnheader"]` as a non-interactive element (1ms)
✓ should NOT identify `div[role="combobox"]` as a non-interactive element
✓ should NOT identify `div[role="form"]` as a non-interactive element
✓ should NOT identify `div[role="gridcell"]` as a non-interactive element
✓ should NOT identify `div[role="link"]` as a non-interactive element
✓ should NOT identify `div[role="menuitem"]` as a non-interactive element
✓ should NOT identify `div[role="menuitemcheckbox"]` as a non-interactive element (1ms)
✓ should NOT identify `div[role="menuitemradio"]` as a non-interactive element
✓ should NOT identify `div[role="option"]` as a non-interactive element (7ms)
✓ should NOT identify `div[role="radio"]` as a non-interactive element
✓ should NOT identify `div[role="rowheader"]` as a non-interactive element
✓ should NOT identify `div[role="searchbox"]` as a non-interactive element
✓ should NOT identify `div[role="slider"]` as a non-interactive element
✓ should NOT identify `div[role="spinbutton"]` as a non-interactive element
✓ should NOT identify `div[role="switch"]` as a non-interactive element (1ms)
✓ should NOT identify `div[role="tab"]` as a non-interactive element
✓ should NOT identify `div[role="textbox"]` as a non-interactive element
✓ should NOT identify `div[role="treeitem"]` as a non-interactive element
indeterminate elements
✓ should NOT identify `abbr` as a non-interactive element
✓ should NOT identify `acronym` as a non-interactive element
✓ should NOT identify `address` as a non-interactive element
✓ should NOT identify `applet` as a non-interactive element
✓ should NOT identify `aside` as a non-interactive element
✓ should NOT identify `audio` as a non-interactive element
✓ should NOT identify `b` as a non-interactive element (1ms)
✓ should NOT identify `base` as a non-interactive element
✓ should NOT identify `bdi` as a non-interactive element
✓ should NOT identify `bdo` as a non-interactive element (6ms)
✓ should NOT identify `big` as a non-interactive element
✓ should NOT identify `blink` as a non-interactive element
✓ should NOT identify `blockquote` as a non-interactive element
✓ should NOT identify `body` as a non-interactive element
✓ should NOT identify `br` as a non-interactive element
✓ should NOT identify `canvas` as a non-interactive element
✓ should NOT identify `caption` as a non-interactive element (1ms)
✓ should NOT identify `center` as a non-interactive element
✓ should NOT identify `cite` as a non-interactive element
✓ should NOT identify `code` as a non-interactive element
✓ should NOT identify `col` as a non-interactive element
✓ should NOT identify `colgroup` as a non-interactive element
✓ should NOT identify `content` as a non-interactive element
✓ should NOT identify `data` as a non-interactive element
✓ should NOT identify `datalist` as a non-interactive element
✓ should NOT identify `del` as a non-interactive element
✓ should NOT identify `details` as a non-interactive element
✓ should NOT identify `dialog` as a non-interactive element
✓ should NOT identify `dir` as a non-interactive element (1ms)
✓ should NOT identify `div` as a non-interactive element (8ms)
✓ should NOT identify `dl` as a non-interactive element
✓ should NOT identify `em` as a non-interactive element
✓ should NOT identify `embed` as a non-interactive element
✓ should NOT identify `figcaption` as a non-interactive element
✓ should NOT identify `font` as a non-interactive element
✓ should NOT identify `footer` as a non-interactive element
✓ should NOT identify `frameset` as a non-interactive element
✓ should NOT identify `head` as a non-interactive element
✓ should NOT identify `header` as a non-interactive element
✓ should NOT identify `hgroup` as a non-interactive element (1ms)
✓ should NOT identify `html` as a non-interactive element
✓ should NOT identify `i` as a non-interactive element
✓ should NOT identify `iframe` as a non-interactive element
✓ should NOT identify `ins` as a non-interactive element (1ms)
✓ should NOT identify `kbd` as a non-interactive element
✓ should NOT identify `keygen` as a non-interactive element
✓ should NOT identify `label` as a non-interactive element
✓ should NOT identify `legend` as a non-interactive element
✓ should NOT identify `link` as a non-interactive element (1ms)
✓ should NOT identify `map` as a non-interactive element (7ms)
✓ should NOT identify `mark` as a non-interactive element (1ms)
✓ should NOT identify `marquee` as a non-interactive element
✓ should NOT identify `menu` as a non-interactive element
✓ should NOT identify `menuitem` as a non-interactive element
✓ should NOT identify `meta` as a non-interactive element (9ms)
✓ should NOT identify `meter` as a non-interactive element
✓ should NOT identify `noembed` as a non-interactive element (1ms)
✓ should NOT identify `noscript` as a non-interactive element
✓ should NOT identify `object` as a non-interactive element
✓ should NOT identify `optgroup` as a non-interactive element
✓ should NOT identify `output` as a non-interactive element (1ms)
✓ should NOT identify `p` as a non-interactive element
✓ should NOT identify `param` as a non-interactive element
✓ should NOT identify `picture` as a non-interactive element (1ms)
✓ should NOT identify `pre` as a non-interactive element
✓ should NOT identify `progress` as a non-interactive element
✓ should NOT identify `q` as a non-interactive element
✓ should NOT identify `rp` as a non-interactive element
✓ should NOT identify `rt` as a non-interactive element
✓ should NOT identify `rtc` as a non-interactive element (16ms)
✓ should NOT identify `ruby` as a non-interactive element (1ms)
✓ should NOT identify `s` as a non-interactive element
✓ should NOT identify `samp` as a non-interactive element (1ms)
✓ should NOT identify `script` as a non-interactive element
✓ should NOT identify `section` as a non-interactive element
✓ should NOT identify `small` as a non-interactive element
✓ should NOT identify `source` as a non-interactive element
✓ should NOT identify `spacer` as a non-interactive element
✓ should NOT identify `span` as a non-interactive element
✓ should NOT identify `strike` as a non-interactive element
✓ should NOT identify `strong` as a non-interactive element
✓ should NOT identify `style` as a non-interactive element
✓ should NOT identify `sub` as a non-interactive element
✓ should NOT identify `summary` as a non-interactive element
✓ should NOT identify `sup` as a non-interactive element
✓ should NOT identify `td` as a non-interactive element (1ms)
✓ should NOT identify `th` as a non-interactive element
✓ should NOT identify `time` as a non-interactive element
✓ should NOT identify `title` as a non-interactive element
✓ should NOT identify `track` as a non-interactive element (6ms)
✓ should NOT identify `tt` as a non-interactive element
✓ should NOT identify `u` as a non-interactive element (1ms)
✓ should NOT identify `var` as a non-interactive element
✓ should NOT identify `video` as a non-interactive element
✓ should NOT identify `wbr` as a non-interactive element
✓ should NOT identify `xmp` as a non-interactive element (1ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment