A platform for community discussion. Free, open, simple.
DEV: Skip time-dependent bookmark test
David Taylor04e493230745
diff --git a/test/javascripts/acceptance/bookmarks-test.js b/test/javascripts/acceptance/bookmarks-test.jsindex 51d1706a4d7..d30ff498c07 100644--- a/test/javascripts/acceptance/bookmarks-test.js+++ b/test/javascripts/acceptance/bookmarks-test.js@@ -196,20 +196,25 @@ test("Editing a bookmark", async assert => {assert.verifySteps(["tomorrow"]);});-test("Editing a bookmark that has a Later Today reminder, and it is before 6pm today", async assert => {- mockSuccessfulBookmarkPost(assert);- await visit("/t/internationalization-localization/280");- await openBookmarkModal();- await fillIn("input#bookmark-name", "Test name");- await click("#tap_tile_later_today");- await openEditBookmarkModal();- assert.not(- exists("#bookmark-custon-date > input"),- "it does not show the custom date input"- );- assert.ok(- exists("#tap_tile_later_today.active"),- "it preselects Later Today"- );- assert.verifySteps(["later_today"]);-});+QUnit.skip(+ "Editing a bookmark that has a Later Today reminder, and it is before 6pm today",+ async assert => {+ // This test needs to mock the current time. sandbox.useFakeTimers() seems to break the `visit` step++ mockSuccessfulBookmarkPost(assert);+ await visit("/t/internationalization-localization/280");+ await openBookmarkModal();+ await fillIn("input#bookmark-name", "Test name");+ await click("#tap_tile_later_today");+ await openEditBookmarkModal();+ assert.not(+ exists("#bookmark-custon-date > input"),+ "it does not show the custom date input"+ );+ assert.ok(+ exists("#tap_tile_later_today.active"),+ "it preselects Later Today"+ );+ assert.verifySteps(["later_today"]);+ }+);