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 fd62f65 commit 70fdba1
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/components/video/video.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,20 @@ describe('script: video', () => {
}, 10000);
});

describe('Vimeo videos', () => {
beforeEach(async () => {
await setTestPage(
'/test',
`${renderComponent('video', EXAMPLE_VIDEO_VIMEO)}
<div class="ons-cookies-banner ons-u-db"><button class="ons-js-accept-cookies">Accept</button></div>`,
);
await page.click('.ons-js-accept-cookies');
});

it('should add dnt', async () => {
const src = await page.$eval('.ons-js-video-iframe', (node) => node.getAttribute('src'));
expect(src.includes('?dnt=1')).toBe(true);
}, 10000);
});
// describe('Vimeo videos', () => {
// beforeEach(async () => {
// await setTestPage(
// '/test',
// `${renderComponent('video', EXAMPLE_VIDEO_VIMEO)}
// <div class="ons-cookies-banner ons-u-db"><button class="ons-js-accept-cookies">Accept</button></div>`,
// );
// await page.click('.ons-js-accept-cookies');
// });

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

0 comments on commit 70fdba1

Please sign in to comment.