I use nighwatch to test a react app.
App CSS classes are like .myClass__4RFGCG
I'd like to test
browser.assert.visible(".myClass", "Testing if .myClass renders")
since from what I read regex are not supported, is there another way?
if anyone looking for that:
browser.assert.visible("div[class^= 'myClass']", "")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With