Skip to content

Commit 683ed66

Browse files
committed
Add temp debugging
1 parent 082008b commit 683ed66

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
# aa-exec applies Ubuntu's AppArmor profile for stable Chrome binaries to the Chrome for Testing binary downloaded by Puppeteer
2424
# Without it, Puppeteer fails with error "No usable sandbox!"
2525
# See https://pptr.dev/troubleshooting#issues-with-apparmor-on-ubuntu
26-
run: npm run test-site-dev & sleep 20; aa-exec -p chrome -- npm run cucumber
26+
run: npm run test-site-dev & sleep 20; VERBOSE=true aa-exec -p chrome -- npm run cucumber

features/support/step_definitions/youtube_steps.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ When("I wait for the YouTube iframe API to load", async function () {
66

77
When("I play YouTube video {string}", async function (videoId) {
88
await this.page.evaluate((id) => {
9+
window.addEventListener('message', (event) => console.log(JSON.stringify(event.data)));
910
const iframe = document.querySelector('iframe[id="' + id + '"]');
1011
const origin = new URL(iframe.src).origin;
1112
iframe.contentWindow.postMessage(JSON.stringify({ event: 'command', func: 'playVideo', args: [] }), origin);

0 commit comments

Comments
 (0)