Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar committed Sep 9, 2024
1 parent b7d141c commit 85d45cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/video/video.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ describe('script: video', () => {

describe('when cookies are accepted on page load, Vimeo videos', () => {
it('should add dnt', async () => {
await setTestPage('/test', renderComponent('video', EXAMPLE_VIDEO_VIMEO));
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>`,
);

const src = await page.$eval('.ons-js-video-iframe', (node) => node.getAttribute('src'));

Expand Down

0 comments on commit 85d45cb

Please sign in to comment.