mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: allows youtube embeds to respect the t
param (#21295)
This commit is contained in:
@ -13,6 +13,7 @@ module("Discourse Lazy Videos | Component | lazy-video", function (hooks) {
|
||||
providerName: "youtube",
|
||||
id: "kPRA0W1kECg",
|
||||
dominantColor: "00ffff",
|
||||
startTime: 234,
|
||||
};
|
||||
|
||||
test("displays the correct video title", async function (assert) {
|
||||
@ -21,6 +22,12 @@ module("Discourse Lazy Videos | Component | lazy-video", function (hooks) {
|
||||
assert.dom(".title-link").hasText(this.attributes.title);
|
||||
});
|
||||
|
||||
test("uses the correct video start time", async function (assert) {
|
||||
await render(hbs`<LazyVideo @videoAttributes={{this.attributes}} />`);
|
||||
|
||||
assert.dom(".youtube-onebox").hasAttribute("data-video-start-time", "234");
|
||||
});
|
||||
|
||||
test("displays the correct provider icon", async function (assert) {
|
||||
await render(hbs`<LazyVideo @videoAttributes={{this.attributes}} />`);
|
||||
|
||||
|
Reference in New Issue
Block a user