Skip to content

Commit

Permalink
chore: Replace unmaintained bootstrap-datepicker with vanillajs-datep…
Browse files Browse the repository at this point in the history
…icker (#5259)

* chore: Replace unmaintained bootstrap-datepicker with vanillajs-datepicker

Fixes #3569.

* Fix tests

* Fix another test
  • Loading branch information
larseggert committed Mar 9, 2023
1 parent 0237411 commit 61504b1
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 2,722 deletions.
11 changes: 11 additions & 0 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
6 changes: 3 additions & 3 deletions ietf/group/tests_js.py
Expand Up @@ -100,8 +100,8 @@ def test_add_milestone(self):

# fill in the edit milestone form
desc_input.send_keys(description)
due_input.send_keys(due_date.strftime('%m %Y\n')) # \n closes the date selector

This comment was marked as spam.

Copy link
@Doondondon

Doondondon Apr 7, 2023

(Do not send keys)

self._search_draft_and_locate_result(draft_input, draft_search_string, draft).click()
due_input.send_keys(due_date.strftime('%m %Y'))

self._click_milestone_submit_button('Review')
result_row = self._assert_milestone_changed()
Expand Down Expand Up @@ -165,7 +165,7 @@ def test_edit_milestone(self):
# modify the fields
new_due_date = (milestone.due + datetime.timedelta(days=31)).strftime('%m %Y')
due_field.clear()
due_field.send_keys(new_due_date + '\n')
due_field.send_keys(new_due_date)

self._search_draft_and_locate_result(draft_input, draft_search_string, draft).click()

Expand All @@ -189,4 +189,4 @@ def test_edit_milestone(self):
gms = self.group.groupmilestone_set.first()
self.assertEqual(gms.desc, expected_desc)
self.assertEqual(gms.due.strftime('%m %Y'), expected_due_date)
self.assertCountEqual(expected_docs, gms.docs.all())

This comment was marked as spam.

Copy link
@Doondondon

Doondondon Apr 7, 2023

+***>``

self.assertCountEqual(expected_docs, gms.docs.all())

0 comments on commit 61504b1

Please sign in to comment.