Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated VideoBlock to use LinkBlock #12577

Merged
merged 13 commits into from
Jul 15, 2024
Merged

Large diffs are not rendered by default.

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions network-api/networkapi/utility/faker/streamfield_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,13 @@ def generate_dark_quote_field():

def generate_video_field():
caption = fake.paragraph(nb_sentences=1, variable_nb_sentences=False)
captionURL = fake.url(schemes=["https"])

caption_external_url = [
{
"link_to": "external_url",
"external_url": fake.url(schemes=["https"]),
"new_window": True,
}
]
return generate_field(
"video",
{
Expand All @@ -205,7 +210,7 @@ def generate_video_field():
# See details: https://github.com/mozilla/foundation.mozilla.org/issues/3833#issuecomment-562240677
"url": "https://www.youtube.com/embed/83fk3RT8318",
"caption": caption,
"captionURL": captionURL,
"caption_url": caption_external_url,
"video_width": "full_width",
},
)
Expand Down
Loading
Loading