The test was failing sometimes, probably because the "Edit" link within the "An example legislation process" row is already present before clicking the "All" link. This can lead to simultaneous requests. Just removing the unnecessary click on the "All" link solves the issue.