mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 08:54:29 +08:00
DEV: Use qunit-dom instead of raw href
/title
comparisons (#29678)
This commit is contained in:
@ -131,7 +131,8 @@ module("Discourse Chat | Component | chat-upload", function (hooks) {
|
||||
await render(hbs`<ChatUpload @upload={{this.upload}} />`);
|
||||
|
||||
assert.dom("a.chat-other-upload").exists("displays as a link");
|
||||
const link = query("a.chat-other-upload");
|
||||
assert.strictEqual(link.href, TXT_FIXTURE.url, "has the correct URL");
|
||||
assert
|
||||
.dom("a.chat-other-upload")
|
||||
.hasAttribute("href", TXT_FIXTURE.url, "has the correct URL");
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user