Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(PPDSC-2312): audio player test improvements (#373)
* fix(PPDSC-2312): audio player test improvements Main issues: - Player sometimes still in loading state when snapshot taken. - Arbitrary waits. - Buffered amount changes, making tests flaky. - Animations making screenshots inconsistent. - Time elapsed in autoplay tests not consistent. Fixes (to avoid ignore regions in tests): - Make sure all players in a test story are loaded before taking the snapshot using oncanplay event. - Prefetch src for all players so that content is fully buffered. Add separate tests for loading / unbuffered state. - Disable CSS animations to make screenshots consistent. - Remove visual tests for autoplay behaviour as this is not necessary. Also remove duplicate autoplay story. - Remove all arbitrary waits and ignore regions in tests. * fix(PPDSC-2312): correct visual test check * fix(PPDSC-2312): fix e2e test errors
- Loading branch information