Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add advertising related player tests #349

Merged
merged 5 commits into from
Dec 13, 2023
Merged

Conversation

rolandkakonyi
Copy link
Contributor

@rolandkakonyi rolandkakonyi commented Dec 7, 2023

Description

These changes add player integration tests to verify advertising-related events are emitted.

Changes

Added advertising-related player integration tests.

Checklist

  • 🗒 CHANGELOG entry - internal changes only, no changelog needed

@rolandkakonyi rolandkakonyi self-assigned this Dec 7, 2023
Comment on lines +60 to +62
if (type !== 'progressive') {
await expectEvent(EventType.AdManifestLoaded, 20);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I experienced longer waiting times with the Android emulator, therefore added this extra expectation to stabilize the test. APPLIES TO THE OTHER OCCURRENCES TOO

@rolandkakonyi rolandkakonyi marked this pull request as ready for review December 11, 2023 14:57
Copy link
Contributor

@zigavehovec zigavehovec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

EventType.AdFinished,
EventType.AdBreakFinished
),
18
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for this quite specific 18? Just a though, what if we increase the default timeout to account for Android emulators being a bit slower and set it to 20?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not touch the default timeout as usually 10 seconds is pretty long already.
This is specific for ads on the Android emulator so belongs to the specific test.

Base automatically changed from improve-player-testing-setup to development December 13, 2023 12:54
@rolandkakonyi rolandkakonyi merged commit 878d065 into development Dec 13, 2023
9 checks passed
@rolandkakonyi rolandkakonyi deleted the add-ads-player-tests branch December 13, 2023 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants