Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar committed Sep 6, 2024
1 parent 88acf63 commit 3b5e343
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/video/video.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const EXAMPLE_VIDEO_YOUTUBE = {
title: 'Census 2021 promotional TV advert',
linkText: 'Example link text',
};

// const EXAMPLE_VIDEO_VIMEO = {
// videoEmbedUrl: 'https://player.vimeo.com/video/838454524?h=24551a3754',
// title: 'Vimeo Video',
Expand Down Expand Up @@ -69,12 +70,12 @@ describe('script: video', () => {
expect(src.includes('?dnt=1')).toBe(false);
}, 10000);

// it('should add dnt to Vimeo videos', async () => {
// await setTestPage('/test', renderComponent('video', EXAMPLE_VIDEO_VIMEO));
it('should add dnt to Vimeo videos', async () => {
await setTestPage('/test', renderComponent('video', EXAMPLE_VIDEO_VIMEO));

// const src = await page.$eval('.ons-js-video-iframe', (node) => node.getAttribute('src'));
// expect(src.includes('?dnt=1')).toBe(true);
// });
const src = await page.$eval('.ons-js-video-iframe', (node) => node.getAttribute('src'));
expect(src.includes('?dnt=1')).toBe(true);
}, 10000);
});

describe('when cookies are accepted via banner', () => {
Expand Down

0 comments on commit 3b5e343

Please sign in to comment.