Skip to content

Commit caf1cc3

Browse files
committed
Remove portrait media test
1 parent 8aa5602 commit caf1cc3

File tree

2 files changed

+0
-275
lines changed

2 files changed

+0
-275
lines changed

ws-nextjs-app/pages/[service]/live/[id]/Post/fixture.ts

Lines changed: 0 additions & 259 deletions
Original file line numberDiff line numberDiff line change
@@ -586,265 +586,6 @@ export const videoSamplePost = {
586586
],
587587
};
588588

589-
export const portraitVideoSamplePost = {
590-
typeCode: null,
591-
header: {
592-
model: {
593-
blocks: [
594-
{
595-
id: 'c35b217c',
596-
type: 'headline',
597-
model: {
598-
blocks: [
599-
{
600-
id: 'a043a38d',
601-
type: 'text',
602-
model: {
603-
blocks: [
604-
{
605-
id: '4c1e704b',
606-
type: 'paragraph',
607-
model: {
608-
text: 'Video',
609-
blocks: [
610-
{
611-
id: '2f297902',
612-
type: 'fragment',
613-
model: {
614-
text: 'Video',
615-
attributes: [],
616-
},
617-
},
618-
],
619-
},
620-
},
621-
],
622-
},
623-
},
624-
],
625-
},
626-
},
627-
{
628-
id: '291c6593',
629-
type: 'subheadline',
630-
model: {
631-
blocks: [
632-
{
633-
id: 'bc7e7be2',
634-
type: 'text',
635-
model: {
636-
blocks: [
637-
{
638-
id: 'ccb1221b',
639-
type: 'paragraph',
640-
model: {
641-
text: 'Video player',
642-
blocks: [
643-
{
644-
id: '7dd4859b',
645-
type: 'fragment',
646-
model: {
647-
text: 'Video player',
648-
attributes: [],
649-
},
650-
},
651-
],
652-
},
653-
},
654-
],
655-
},
656-
},
657-
],
658-
},
659-
},
660-
],
661-
},
662-
},
663-
content: {
664-
model: {
665-
blocks: [
666-
{
667-
id: 'a1dd09b3',
668-
type: 'paragraph',
669-
model: {
670-
text: 'Video',
671-
blocks: [
672-
{
673-
id: '823772a4',
674-
type: 'fragment',
675-
model: { text: 'Video', attributes: ['bold'] },
676-
},
677-
],
678-
},
679-
},
680-
{
681-
id: '8b8965cd',
682-
type: 'video',
683-
model: {
684-
locator: 'urn:bbc:pips:pid:p01thw20',
685-
blocks: [
686-
{
687-
id: '83f02f5a',
688-
type: 'clipMedia',
689-
model: {
690-
id: 'urn:bbc:pips:pid:p01thw20',
691-
urns: {
692-
pipsPid: 'urn:bbc:pips:pid:p01thw20',
693-
},
694-
images: [
695-
{
696-
url: 'https://ichef.test.bbci.co.uk/images/ic/1024xn/p01thw3g.jpg',
697-
urlTemplate:
698-
'https://ichef.test.bbci.co.uk/images/ic/{width}xn/p01thw3g.jpg',
699-
altText:
700-
'BBC launch trailer for We Know Our Place women\'s sport campaign"',
701-
type: 'socialImage',
702-
source: 'pipsImage',
703-
},
704-
{
705-
url: 'https://ichef.test.bbci.co.uk/images/ic/1024xn/p01thw3g.jpg',
706-
urlTemplate:
707-
'https://ichef.test.bbci.co.uk/images/ic/{width}xn/p01thw3g.jpg',
708-
altText:
709-
'BBC launch trailer for We Know Our Place women\'s sport campaign"',
710-
type: 'promoImage',
711-
source: 'pipsImage',
712-
},
713-
],
714-
assetPath: 'p01thw20',
715-
type: 'video',
716-
headlines: {
717-
primaryHeadline:
718-
"BBC launch trailer for We Know Our Place women's sport campaign",
719-
seoHeadline:
720-
"BBC launch trailer for We Know Our Place women's sport campaign",
721-
promoHeadline:
722-
"BBC launch trailer for We Know Our Place women's sport campaign",
723-
socialHeadline:
724-
"BBC launch trailer for We Know Our Place women's sport campaign",
725-
},
726-
analytics: {
727-
page: {
728-
name: 'programmes.av.p01thw20.page',
729-
contentId: 'urn:bbc:pips:pid:p01thw20',
730-
producer: 'PROGRAMMES',
731-
},
732-
},
733-
description:
734-
'BBC launch trailer for We Know Our Place women\'s sport campaign"',
735-
summary: {
736-
type: 'text',
737-
model: {
738-
blocks: [
739-
{
740-
type: 'paragraph',
741-
model: {
742-
text: 'BBC launch trailer for We Know Our Place women\'s sport campaign"',
743-
blocks: [
744-
{
745-
type: 'fragment',
746-
model: {
747-
text: 'BBC launch trailer for We Know Our Place women\'s sport campaign"',
748-
attributes: [],
749-
},
750-
},
751-
],
752-
},
753-
},
754-
],
755-
},
756-
},
757-
lastPublished: '2022-07-01T08:56:56Z',
758-
firstPublished: null,
759-
video: {
760-
id: 'p01thw20',
761-
title:
762-
"BBC launch trailer for We Know Our Place women's sport campaign",
763-
holdingImage: {
764-
id: 'https://ichef.test.bbci.co.uk/images/ic/$recipe/p01thw3g.jpg',
765-
altText:
766-
'BBC launch trailer for We Know Our Place women\'s sport campaign"',
767-
},
768-
version: {
769-
id: 'p01thw22',
770-
duration: 'PT54S',
771-
kind: 'programme',
772-
guidance: null,
773-
territories: ['nonuk', 'uk'],
774-
orientation: 'portrait',
775-
},
776-
isAdvertisingAllowed: true,
777-
isEmbeddingAllowed: true,
778-
isUnavailable: false,
779-
},
780-
attributions: null,
781-
link: { path: '/programmes/p01thw20' },
782-
section: null,
783-
isSharingAllowed: true,
784-
},
785-
},
786-
{
787-
id: '7aff54bf',
788-
type: 'caption',
789-
model: {
790-
blocks: [
791-
{
792-
id: '69b391e8',
793-
type: 'text',
794-
model: {
795-
blocks: [
796-
{
797-
id: '4f06c3eb',
798-
type: 'paragraph',
799-
model: {
800-
text: 'BBC launch trailer for We Know Our Place women\'s sport campaign"',
801-
blocks: [
802-
{
803-
id: 'ae848e19',
804-
type: 'fragment',
805-
model: {
806-
text: 'BBC launch trailer for We Know Our Place women\'s sport campaign"',
807-
attributes: [],
808-
},
809-
},
810-
],
811-
},
812-
},
813-
],
814-
},
815-
},
816-
],
817-
},
818-
},
819-
],
820-
},
821-
},
822-
],
823-
},
824-
},
825-
link: null,
826-
urn: 'asset:d25690d5-6df5-4a79-9fee-5549ac8a141b',
827-
type: 'POST',
828-
options: { isBreakingNews: false },
829-
dates: {
830-
firstPublished: '2023-09-08T09:58:44+00:00',
831-
lastPublished: '2023-09-08T10:09:41+00:00',
832-
time: null,
833-
curated: '2023-09-08T09:58:44.896Z',
834-
},
835-
titles: [{ title: null, source: 'primary' }],
836-
descriptions: [{ text: null, source: 'summary' }],
837-
images: [
838-
{
839-
url: null,
840-
originalUrl: null,
841-
urlTemplate: null,
842-
altText: null,
843-
copyright: null,
844-
},
845-
],
846-
};
847-
848589
export const audioSamplePost = {
849590
typeCode: null,
850591
header: {

ws-nextjs-app/pages/[service]/live/[id]/Post/index.test.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
samplePost,
1212
twitterSamplePost,
1313
videoSamplePost,
14-
portraitVideoSamplePost,
1514
} from './fixture';
1615

1716
const singlePostWithTitle = postFixture.data.results[0];
@@ -175,21 +174,6 @@ describe('Post', () => {
175174
).toBeInTheDocument();
176175
});
177176

178-
it('should render the new media player in a post containing a video in portrait mode', async () => {
179-
const { container } = await act(async () => {
180-
return render(<Post post={portraitVideoSamplePost} />, {
181-
id: 'c7p765ynk9qt',
182-
service: 'pidgin',
183-
pageType: LIVE_PAGE,
184-
pathname: '/pidgin/live/c7p765ynk9qt',
185-
});
186-
});
187-
188-
expect(
189-
container.querySelector('.portrait-clip-media'),
190-
).toBeInTheDocument();
191-
});
192-
193177
it('should render the new media player in a post containing audio', async () => {
194178
const { container } = await act(async () => {
195179
return render(<Post post={audioSamplePost} />, {

0 commit comments

Comments
 (0)