Closed meleyal closed 1 year ago
I'm not sure why that's not finding anything - if you do a toString()
, what does the class actually look like?
In general I wouldn't advise doing this sort of thing - if you want to find an element by some property, I recommend putting something predictable on it for that purpose specifically.
<div className={`qa-next-page ${styles.nextPageButton}`} />
When class names are dynamically generated via e.g. CSS modules
subTree()
anddive()
are not very helpful: