-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SDPA-3421] Fix embedded video issues with no transcript and add tests (
#622) * [SDPA-3421] Fix embedded video issues with no transcript and add tests * rename alias in TideCreateNode command
- Loading branch information
1 parent
cf78034
commit d31ccf4
Showing
10 changed files
with
81 additions
and
18 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
examples/vic-gov-au/test/e2e/fixtures/media/embedded-video-no-transcript.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
- entity: media | ||
bundle: embedded_video | ||
name: 'Embedded video test - no transcript' | ||
uid: 1 | ||
status: 1 | ||
field_media_video_embed_field: 'https://www.youtube.com/watch?v=pZRrtGYx7EM' | ||
field_media_link: 'View transcript' | ||
field_license_type: | ||
- '#process': | ||
callback: reference | ||
args: | ||
- taxonomy_term | ||
- vid: license_type | ||
name: 'Demo License' |
15 changes: 15 additions & 0 deletions
15
examples/vic-gov-au/test/e2e/fixtures/media/embedded-video.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
- entity: media | ||
bundle: embedded_video | ||
name: 'Demo: Wodonga Local Aboriginal Network - Bringing People Together' | ||
uid: 1 | ||
status: 1 | ||
field_media_video_embed_field: 'https://www.youtube.com/watch?v=pZRrtGYx7EM' | ||
field_media_link: 'View transcript' | ||
field_media_transcript: 'this is the transcript' | ||
field_license_type: | ||
- '#process': | ||
callback: reference | ||
args: | ||
- taxonomy_term | ||
- vid: license_type | ||
name: 'Demo License' |
28 changes: 24 additions & 4 deletions
28
examples/vic-gov-au/test/e2e/integration/core-modules/media/media.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
Feature: Media | ||
Feature: Embedded Media | ||
|
||
Test Media | ||
As a citizen I am able to view videos published to the website | ||
|
||
Scenario: Embedded media video | ||
Scenario: Landing page with Embedded media video | ||
Given the "/embedded-video-test" page exists with fixture "media/embedded-video-test" data | ||
When I visit the page "/embedded-video-test" | ||
Then there should be 2 embedded videos | ||
And there should be a embedded video transcript link | ||
And there should be a embedded video transcript link "/media/7008" | ||
|
||
Scenario: Media page for video with transcript | ||
Given I have created a node with the YAML fixture "media/embedded-video" | ||
When I navigate to the first created node | ||
Then the current page should not be an error page | ||
And the page title should be "Demo: Wodonga Local Aboriginal Network - Bringing People Together" | ||
And the hero banner title should be "Demo: Wodonga Local Aboriginal Network - Bringing People Together" | ||
And there should be 2 breadcrumb items | ||
And there should be 1 embedded videos | ||
And the embedded video transcript should contain the text "this is the transcript" | ||
|
||
Scenario: Media page for video without transcript | ||
Given I have created a node with the YAML fixture "media/embedded-video-no-transcript" | ||
When I navigate to the first created node | ||
Then the current page should not be an error page | ||
And the page title should be "Embedded video test - no transcript" | ||
And the hero banner title should be "Embedded video test - no transcript" | ||
And there should be 2 breadcrumb items | ||
And there should be 1 embedded videos | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/ripple-nuxt-tide/modules/media/components/EmbeddedVideo.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters