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

provide test coverage for email form controls #11

Open
stopfstedt opened this issue May 31, 2024 · 0 comments
Open

provide test coverage for email form controls #11

stopfstedt opened this issue May 31, 2024 · 0 comments

Comments

@stopfstedt
Copy link
Member

stopfstedt commented May 31, 2024

the tests/behat/groups.feature scenario used to have some of these, but they weren't working, and due to time constraints i had to yank them.

you can find them here:

When I click on "All Users" "text" in the "#groups" "css_element"
Then "//select[@id='from_users']/option[text()='Student 1 (g1)' and @selected='selected']" "xpath_element" should exist
And "//select[@id='from_users']/option[text()='Student 2 (g2)' and @selected='selected']" "xpath_element" should exist
When I click on "All Groups" "text" in the "#groups" "css_element"
Then "//select[@id='from_users']/option[text()='Student 1 (g1)' and @selected='selected']" "xpath_element" should exist
And "//select[@id='from_users']/option[text()='Student 2 (g2)' and @selected='selected']" "xpath_element" should exist
When I click on "g2" "text" in the "#groups" "css_element"
Then "//select[@id='from_users']/option[text()='Student 1 (g1)' and @selected='selected']" "xpath_element" should not exist
And "//select[@id='from_users']/option[text()='Student 2 (g2)' and @selected='selected']" "xpath_element" should exist
When I click on "g1" "text" in the "#groups" "css_element"
Then "//select[@id='from_users']/option[text()='Student 1 (g1)' and @selected='selected']" "xpath_element" should exist
And "//select[@id='from_users']/option[text()='Student 2 (g2)' and @selected='selected']" "xpath_element" should not exist

image

so bring those back!

might need to roll some custom step definitions to make this happen - for example, i couldn't make selected-state checks happen on the options in the user selector using the built-in, xpath-powered steps.

but wait, there's more - cover the other interactions - user (un-)assignment, roles filter, etc - with tests as well.

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

No branches or pull requests

1 participant