3.9.4, 3.10.1, 3.11.2, 4.0
I’ve seen a lot of failures with this step and I think it’s because the browser decides that the time to start loading the “Site administration” page means that it is not detected as a navigation change.
I think that we need to improve this step and there are a few ways that we can do so.
At the moment the step basically does:
- for each setting you specified:
- click on “Site administration” in the flat navigation [<== Step that fails]
- set the value of the “Search” field to the setting label
- hit the search button
- find the field on the page
- set the value
- save changes
I think that we can combine the top three steps of the for each by going directly to /admin/search.php?search=$label.
I think that this will actually make this work much better, fail much less, and really we should not be using this step to test this part of the admin tree - using that box should have it’s own tests.
At the same time, many of these uses can be converted to use data generators. Changing the value is not the feature being tested, but the effect of the new value is.
MDL-71058 Update behat_permissions to act as data generators
- Development in progress