Improve job fixutre
What does this MR do and why?
This MR slightly improves the jobs fixture by adding an additional check to ensure that data is returned and nodes are not nil. During development, the existing check expect_graphql_errors_to_be_empty
was expected to warn if no data was returned, indicating an issue with the query or some other problem. With this improvement, the aim is to ensure that if no data is returned where it should be, the test fails.
How to set up and validate locally
- Run
bin/rails spec/frontend/fixtures/jobs.rb
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Andreas Deicha