Skip to content

test(esl-media): e2e testing#2725

Open
fshovchko wants to merge 5 commits intomainfrom
e2e/media-testing
Open

test(esl-media): e2e testing#2725
fshovchko wants to merge 5 commits intomainfrom
e2e/media-testing

Conversation

@fshovchko
Copy link
Contributor

Closes: #2709

@ala-n, do we need any other functionality tested or basic check for video/iframe tag is enough?

@fshovchko fshovchko added the e2e label Oct 28, 2024
@fshovchko fshovchko requested a review from a team October 28, 2024 19:55
@fshovchko fshovchko self-assigned this Oct 28, 2024
@fshovchko fshovchko requested review from NastaLeo, dshovchko and yadamskaya and removed request for a team October 28, 2024 19:55
@ala-n
Copy link
Collaborator

ala-n commented Oct 29, 2024

Nope, checking the existence of an iframe is not enough.
From what I could suggest based on YouTube provider work we need:

  1. Check that YouTube API is loaded, check that it is loaded once
  2. We need to check the inner iframe is, actually, a YouTube and that it at least contains an ID of the required video
  3. We need to check initial attributes as well (playsinline, autoplay, mute)
  4. Ideally we need as much as possible including the ability to play etc. but unfortunately, YouTube no longer allows playing videos for unauthorized users (autotests including).

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 1f1dc61 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 65.3% (0.0% change).

View more on Code Climate.

@fshovchko fshovchko requested a review from ala-n October 31, 2024 12:12
@ala-n ala-n force-pushed the main branch 4 times, most recently from df09192 to 5f44df3 Compare January 17, 2025 02:32
@ala-n ala-n requested a review from a team as a code owner June 3, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[⚡tests ]: make sure YouTube/HTML5 ESLMedia provides are covered by tests

2 participants