Skip to content

Commit

Permalink
DEV: Update tests for core change (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq authored Nov 15, 2023
1 parent be53c06 commit da20a2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/system/page_objects/modals/assign.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions test/javascripts/acceptance/assigns-tab-user-menu-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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");
});
});

0 comments on commit da20a2b

Please sign in to comment.