From da20a2bf532de72a8dd437391653ae703f4bf345 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 15 Nov 2023 09:23:36 +0000 Subject: [PATCH] DEV: Update tests for core change (#525) https://github.com/discourse/discourse/pull/23967 --- spec/system/page_objects/modals/assign.rb | 2 +- test/javascripts/acceptance/assigns-tab-user-menu-test.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/system/page_objects/modals/assign.rb b/spec/system/page_objects/modals/assign.rb index afe51e93..91e4fea2 100644 --- a/spec/system/page_objects/modals/assign.rb +++ b/spec/system/page_objects/modals/assign.rb @@ -19,7 +19,7 @@ def note=(note) end def confirm - find(".modal-footer .btn-primary").click + find(".d-modal__footer .btn-primary").click end end end diff --git a/test/javascripts/acceptance/assigns-tab-user-menu-test.js b/test/javascripts/acceptance/assigns-tab-user-menu-test.js index d80ff309..394dc22d 100644 --- a/test/javascripts/acceptance/assigns-tab-user-menu-test.js +++ b/test/javascripts/acceptance/assigns-tab-user-menu-test.js @@ -262,13 +262,13 @@ acceptance("Discourse Assign | user menu", function (needs) { assert.false(markRead, "mark-read request isn't sent"); assert.strictEqual( query( - ".dismiss-notification-confirmation .modal-body" + ".dismiss-notification-confirmation .d-modal__body" ).textContent.trim(), I18n.t("notifications.dismiss_confirmation.body.assigns", { count: 173 }), "dismiss confirmation modal is shown" ); - await click(".modal-footer .btn-primary"); + await click(".d-modal__footer .btn-primary"); assert.true(markRead, "mark-read request is sent"); assert.dom(".notifications-dismiss").doesNotExist("dismiss button is gone"); assert @@ -312,7 +312,7 @@ acceptance("Discourse Assign | user menu", function (needs) { await click(".notifications-dismiss"); assert.false(markRead, "a request to the server is not made"); assert - .dom(".dismiss-notification-confirmation .modal-body") + .dom(".dismiss-notification-confirmation .d-modal__body") .exists("the dismiss notification confirmation modal is present"); }); });