-
Notifications
You must be signed in to change notification settings - Fork 1
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
Panel front end #638
Panel front end #638
Conversation
.cell.small-12 | ||
= f.submit 'Update Panel Information', class: 'button' | ||
|
||
:javascript |
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.
Should this be separated out to its own js file and then included here?
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.
agreed, but i'm going to leave this for now. there are other files (e.g. grant form) where this needs to happen.
%h2 | ||
Review Panel | ||
%strong | ||
CHANGE THIS LOGIC |
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.
Is this supposed to be changed?
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.
this is coming up in the next PR...
end | ||
|
||
it 'does not require end_datetime and start_dateime to be set' do | ||
panel.start_datetime = nil | ||
panel.end_datetime = nil | ||
expect(panel).to be_valid | ||
end | ||
end | ||
|
||
context 'meeting_link' do |
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.
These should potentially be separated. You can also use shared_examples to call these.
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.
added in 6e97a80
end | ||
end | ||
|
||
context 'before start_datetime' do |
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.
Maybe use shared_examples here also.
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.
added in 6e97a80
visit edit_grant_panel_path(grant) | ||
end | ||
|
||
scenario 'can visit the edit page' do |
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.
These could also be handled by shared examples.
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.
added in 6e97a80
visit edit_grant_panel_path(grant) | ||
end | ||
|
||
scenario 'may update' do |
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.
shared examples
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.
added in 6e97a80
let(:grant) { create(:published_open_grant_with_users, :with_reviewer) } | ||
let(:new_user) { create(:user) } | ||
|
||
context 'roles' do |
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.
This is a good place for shared examples.
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.
since these are testing different, dynamically-created methods, i'm going to leave them as is
@mattbaumann1 approval via conversation in Teams |
Closes #629
Closes #628