Skip to content

Commit

Permalink
fix(cypress): remove focus after video pause
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <[email protected]>
  • Loading branch information
skjnldsv committed Sep 6, 2024
1 parent 4413b14 commit 224e6dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cypress/e2e/visual-regression.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ describe('Visual regression tests', function() {
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active video').then(video => {
video.get(0).pause()
video.get(0).currentTime = 1
cy.document().then(doc => {
doc.activeElement?.blur?.();

Check failure on line 91 in cypress/e2e/visual-regression.cy.ts

View workflow job for this annotation

GitHub Actions / NPM lint

Extra semicolon
})
})
// wait a bit for things to be settled
// eslint-disable-next-line
Expand Down

0 comments on commit 224e6dd

Please sign in to comment.