-
-
Notifications
You must be signed in to change notification settings - Fork 469
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
Change checkboxes to radio buttons #3824
Conversation
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.
Looks pretty good! Had a couple of questions/suggestions.
} | ||
|
||
.form-yesno > div > div > label { |
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 kinds of rules are pretty brittle. Can we add some classes or IDs 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.
I was able to rewrite these rules to use classes.
spec/models/partners/profile_spec.rb
Outdated
@@ -215,4 +215,19 @@ | |||
describe "versioning" do | |||
it { is_expected.to be_versioned } | |||
end | |||
|
|||
describe "default values" 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.
Not sure this needs its own test. You're basically asserting the default database values.
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.
Removed.
@@ -0,0 +1,92 @@ | |||
RSpec.describe "Partners profile radio buttons behaviour", type: :system, js: true 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 can be a request spec. System specs use a full browser and are only needed when testing interactions.
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.
I removed the system spec and re-implemented some of these tests as request spec.
Also, please fix the lint issues! |
c475fa5
to
0226248
Compare
Thanks for the contribution! FYI, for next time please do not force push branches that have active pull request conversations, as it becomes really hard to find the previous comments. |
Resolves #3804
Description
List any dependencies that are required for this change. (gems, js libraries, etc.)
No new dependencies
Include anything else we should know about. -->
Type of change
How Has This Been Tested?
Screenshots
Before:
Edit:
Show:
After:
Edit:
Show: