Do not assert `required` HTML5 attribute when HTML5 compatibility is disabled.
This commit is contained in:
parent
2b1dcd16ba
commit
a7c9575a4e
|
@ -169,18 +169,4 @@ class DateTimeInputWithoutHtml5Test < ActionView::TestCase
|
||||||
with_input_for :project, :created_at, :time, html5: false
|
with_input_for :project, :created_at, :time, html5: false
|
||||||
assert_select 'label[for=project_created_at_4i]'
|
assert_select 'label[for=project_created_at_4i]'
|
||||||
end
|
end
|
||||||
|
|
||||||
test 'date time input should generate required html attribute' do
|
|
||||||
skip
|
|
||||||
with_input_for @user, :delivery_time, :time, required: true, html5: false
|
|
||||||
assert_select 'select.required'
|
|
||||||
assert_select 'select[required]'
|
|
||||||
end
|
|
||||||
|
|
||||||
test 'date time input has an aria-required html attribute' do
|
|
||||||
skip
|
|
||||||
with_input_for @user, :delivery_time, :time, required: true, html5: false
|
|
||||||
assert_select 'select.required'
|
|
||||||
assert_select 'select[aria-required=true]'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue