-
Notifications
You must be signed in to change notification settings - Fork 158
System tests for ActiveJobs #4583
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
Conversation
|
This is a comment acknowledging this PR. |
| require 'ood_core/job/adapters/slurm' | ||
|
|
||
| class ActiveJobsTest < ApplicationSystemTestCase | ||
| JavascriptWaitTime = 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use SNAKE_CASE_UPPER style for constants that aren't classes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦♂️That was a remnant from before I discovered assert_selector to wait for js action. It is unused and I will just remove it, but that is good to know going forward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK I think that applies to variables as well. You also have DetailHeaders which should likely be detail_headers, MainbodySelect which is main_body_select and so on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why wouldn't those be snake case upper as well? They are class constants like JavascriptWaitTime was.
Also I accidentally went ahead and converted them all to snake case upper, having not read your last comment carefully enough. Happy to change them to lower snake case though if that is what we want.
Contributes to #375, and relies upon the changes in #4576 and #4578. The first test exhaustively checks the row structure and extended info, allowing us to skip these checks in later tests, just confirming which jobs are shown using number of rows and assert_text. The main areas this test covers are