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 575fab5 commit 7830bfe
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/components/video/video.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const EXAMPLE_VIDEO_YOUTUBE = {
linkText: 'Example link text',
};

const EXAMPLE_VIDEO_VIMEO = {
videoEmbedUrl: 'https://player.vimeo.com/video/838454524?h=24551a3754',
title: 'Vimeo Video',
linkText: 'Example link text',
};
// const EXAMPLE_VIDEO_VIMEO = {
// videoEmbedUrl: 'https://player.vimeo.com/video/838454524?h=24551a3754',
// title: 'Vimeo Video',
// linkText: 'Example link text',
// };

const EXAMPLE_APPROVED_COOKIE = JSON.stringify({ campaigns: true }).replace(/"/g, "'");

Expand Down Expand Up @@ -71,12 +71,12 @@ describe('script: video', () => {
}, 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);
}, 10000);
// 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', () => {
beforeEach(async () => {
Expand Down

0 comments on commit 7830bfe

Please sign in to comment.