[Tests] A few projects related Workbench tests are failing in jenkins. Make them pass.
Looking at the fail-1.png, it appears that the page width used for the test is not wide enough and some of the buttons in project page (Add data, Run a pipeline, Add a subproject) are not visible. It might help to increase the page size for projects_test.rb.
#4 Updated by Radhika Chippada about 6 years ago
- Use selenium driver in projects_test.rb
- Set slightly bigger browser width
- Update three tests that failed.
- Add "wait_for_ajax" for test 'Check collection count for A Project in the tab pane titles'. On a side note, I suspect this actually never worked correctly earlier because the count must always have been 0.
- Add confirm dialog OK button click for sharing tests upon Revoke action.
#5 Updated by Brett Smith about 6 years ago
In current master, the projects integration tests all pass when run by themselves. This suggests that the problem is not the tests themselves, but that state is leaking between tests. I would prefer to see a solution that cleans up that state consistently, rather than patching over the projects tests. Otherwise, the leakage may cause surprising effects for other tests later.
The build started failing after #4592 was merged, which added a test that resizes the browser window. Perhaps Capybara doesn't reset the window back to its original state after that? But whatever state is leaking, plugging the leak would be a lot cleaner, I think.