spec: fix bad syntax in jquery selectors
this selector syntax is allowed in jqery 1.7 but fails to parse with a syntax error in jqery 1.8 flag = none Test Plan: tests pass refs FOO-4220 Change-Id: Iccecbdbb64e02127a7b34ff098bad0ea2056995d Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/338194 Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> Reviewed-by: Charley Kline <ckline@instructure.com> QA-Review: Charley Kline <ckline@instructure.com> Product-Review: Charley Kline <ckline@instructure.com>
This commit is contained in:
parent
c63109efb8
commit
d2b8f14719
|
@ -232,7 +232,7 @@ test('shows todo input with date when given date', function () {
|
|||
ENV.TIMEZONE = 'America/Chicago'
|
||||
const view = this.editView({}, {todo_date: '2017-01-03'})
|
||||
equal(view.$el.find('#allow_todo_date').prop('checked'), true)
|
||||
equal(view.$el.find('input[name="todo_date"').val(), 'Jan 2, 2017, 6:00 PM')
|
||||
equal(view.$el.find('input[name="todo_date"]').val(), 'Jan 2, 2017, 6:00 PM')
|
||||
})
|
||||
|
||||
test('renders announcement page when planner enabled', function () {
|
||||
|
@ -271,8 +271,8 @@ test('does save todo date if allow_todo_date is checked and discussion is not gr
|
|||
view.renderGroupCategoryOptions()
|
||||
view.$el.find('#allow_todo_date').prop('checked', true)
|
||||
view.$el.find('#allow_todo_date').trigger('change')
|
||||
view.$el.find('input[name="todo_date"').val(todo_date.toISOString())
|
||||
view.$el.find('input[name="todo_date"').trigger('change')
|
||||
view.$el.find('input[name="todo_date"]').val(todo_date.toISOString())
|
||||
view.$el.find('input[name="todo_date"]').trigger('change')
|
||||
const formData = view.getFormData()
|
||||
equal(formData.todo_date.toString(), todo_date.toString())
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue