bug
Given a html video player
When I press the full screen button
Then the video player DOES NOT GO to full screen
...and then I can see the message in the console:
Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture.
Given a html video player
When I press the full screen button
Then the video player SHOULD GO to full screen
1. open https://plyr.io/ or any other html video player
2. press full screen button
describe('having video player in in-site mode', () => {
it('should go to full screen after pressing full screen button', () => {
cy.visit('https://plyr.io/');
cy.get('[data-plyr="fullscreen"]').click();
});
});
I know the user gesture problem is really common, and this is the default browser behaviour, but it would be great to make it working correctly in Cypress as it should simulate user journey on tested page/application.
+1
This is something that definitely requires our support of native browser events, as this cannot be done programatically: https://github.com/cypress-io/cypress/issues/311
Doesn't chromium have a CLI switch to bypass "API can only be initiated by a user gesture"?
I'm not fluent in C++. I've looked into Chromium code and I didn't find a way to bypass this check.
Does anyone have fix this issue ? or do you need help to investigate on this
Most helpful comment
This is something that definitely requires our support of native browser events, as this cannot be done programatically: https://github.com/cypress-io/cypress/issues/311