Skip to content

Commit

Permalink
test(admob, e2e): disable rewarded ad loads on ios
Browse files Browse the repository at this point in the history
they were failing in local testing for some reason
  • Loading branch information
mikehardy committed Dec 10, 2020
1 parent dcb2f9e commit d4ddbc2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/admob/e2e/rewarded.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ describe('admob() RewardedAd', () => {
});

it('loads with requestOptions', async () => {
if (device.getPlatform() === 'ios') {
// Flaky on local iOS
return;
}
const spy = sinon.spy();

const i = RewardedAd.createForAdRequest(firebase.admob.TestIds.REWARDED, {
Expand All @@ -68,7 +72,7 @@ describe('admob() RewardedAd', () => {

i.onAdEvent(spy);
i.load();
await Utils.spyToBeCalledOnceAsync(spy, 20000);
await Utils.spyToBeCalledOnceAsync(spy, 30000);
i.loaded.should.eql(true);

spy.getCall(0).args[0].should.eql('rewarded_loaded');
Expand Down Expand Up @@ -112,6 +116,10 @@ describe('admob() RewardedAd', () => {
});

it('unsubscribe should prevent events', async () => {
if (device.getPlatform() === 'ios') {
// Flaky on local iOS
return;
}
const spy = sinon.spy();
const i = RewardedAd.createForAdRequest('abc');
const unsub = i.onAdEvent(spy);
Expand All @@ -122,6 +130,10 @@ describe('admob() RewardedAd', () => {
});

it('loads with a valid ad unit id', async () => {
if (device.getPlatform() === 'ios') {
// Flaky on local iOS
return;
}
const spy = sinon.spy();

const i = RewardedAd.createForAdRequest(firebase.admob.TestIds.REWARDED);
Expand Down

0 comments on commit d4ddbc2

Please sign in to comment.