Eui: Cannot add data-test-subject to the arrow which expands sections in side nav

Created on 8 Feb 2021  路  2Comments  路  Source: elastic/eui

I was fixing a skipped a11y test on Kibana home under x-pack and ran across this problem. I cannot add data-test-subject to this part highlighted in red circle. This is in src/core/public/chrome/ui/header/collapsible_nav.tsx

 collapsible_nav.tsx

Screen Shot 2021-01-29 at 4 56 25 PM (1)

bug

Most helpful comment

Yay Thanks @cchaos - we just need it on the whole accordion triggering button. cc @myasonik

All 2 comments

Hey @bhavyarm , I'm working this one out for you. Quick question, are you specifically trying to target just the arrow icon? I assume you actually just need a data-test-subj on the whole accordion triggering button which actually includes that whole heading in your screenshot (Logo and "Analytics").

Screen Shot 2021-02-10 at 13 30 34 PM

Yay Thanks @cchaos - we just need it on the whole accordion triggering button. cc @myasonik

Was this page helpful?
0 / 5 - 0 ratings