Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support text and attr on NodeLists by passing an array #3

Open
nathanboktae opened this issue Oct 30, 2015 · 1 comment
Open

Support text and attr on NodeLists by passing an array #3

nathanboktae opened this issue Oct 30, 2015 · 1 comment

Comments

@nathanboktae
Copy link
Owner

For example

document.querySelectorAll('li').should.have.text(['red', 'blue', 'green'])
document.querySelectorAll('li').should.have.attr('aria-selected', ['', 'true', ''])

Having regex in there too would be nice, maybe something like the following?

document.querySelectorAll('.email').should.have.text(/[^@]+@.+/)
document.querySelectorAll('p').should.have.text([/^Welcome, .+\./, /^For the first step/])
@andipabst
Copy link
Contributor

Isn't the first already implemented?

But I would try to implement the second one, if that's okay to you? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants