From 44cfa25d7d2d7c5892842bba94de2f50fbf1ad23 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 20 Jul 2020 15:44:29 -0400 Subject: [PATCH] FIX: Focus tests are unreliable in qunit I doubt they'll regress so let's remove them for now. --- test/javascripts/acceptance/bookmarks-test.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/test/javascripts/acceptance/bookmarks-test.js b/test/javascripts/acceptance/bookmarks-test.js index 59eadc0d126..79b30f6ebcf 100644 --- a/test/javascripts/acceptance/bookmarks-test.js +++ b/test/javascripts/acceptance/bookmarks-test.js @@ -230,15 +230,6 @@ test("Editing a bookmark", async assert => { assert.verifySteps(["tomorrow"]); }); -test("Opening bookmark modal on desktop should auto-focus name", async assert => { - mockSuccessfulBookmarkPost(assert); - - await visit("/t/internationalization-localization/280"); - await openBookmarkModal(); - - assert.equal($("#bookmark-name").is(":focus"), true); -}); - acceptance("Bookmarking - Mobile", { loggedIn: true, mobileView: true, @@ -247,15 +238,6 @@ acceptance("Bookmarking - Mobile", { } }); -test("Opening bookmark modal on mobile should not auto-focus name", async assert => { - mockSuccessfulBookmarkPost(assert); - - await visit("/t/internationalization-localization/280"); - await openBookmarkModal(); - - assert.equal($("#bookmark-name").is(":focus"), false); -}); - QUnit.skip( "Editing a bookmark that has a Later Today reminder, and it is before 6pm today", async assert => {