Update app/assets/javascripts/discourse/tests/acceptance/user-status-test.js

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
This commit is contained in:
Régis Hanol 2024-06-25 11:43:24 +02:00
parent 66fc9bfdda
commit 8ff1efa100

View File

@ -222,12 +222,13 @@ acceptance("User Status", function (needs) {
await click("#tap_tile_one_hour");
await click(".btn-primary"); // save
assert.ok(
query(".user-status-background img").title.startsWith(
"off to <img src=''> dentist",
assert
.dom(".user-status-background img")
.hasAttribute(
"title",
/^off to <img src=''> dentist/,
"title is properly escaped"
)
);
);
await click(".header-dropdown-toggle.current-user button");
await click("#user-menu-button-profile");