Skip to content

Commit

Permalink
react-components: fix cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
giannif committed Nov 1, 2024
1 parent 79552ee commit 43c2969
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-components/cypress/utils/video-test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ export function checkVideoEvents(ctx: VideoTestUtilsContext) {
.then(async (elems) => {
const el = elems.get(0)
await el.play()
return new Promise((resolve) => {
return new Promise<void>((resolve) => {
function listener() {
el.removeEventListener('ended', listener)
resolve(null)
resolve()
}
el.addEventListener('ended', listener)
})
Expand Down
1 change: 1 addition & 0 deletions packages/react-components/stories/gif.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export const GifWithAd: Story = {

export const GifThatStretches: Story = {
args: {
id: 'sTczweWUTxLqg',
percentWidth: '50%',
},
}
Expand Down

0 comments on commit 43c2969

Please sign in to comment.