diff --git a/bridge/e2e/firestore/transactions.e2e.js b/bridge/e2e/firestore/transactions.e2e.js index 66b6d5c0..f42afb5a 100644 --- a/bridge/e2e/firestore/transactions.e2e.js +++ b/bridge/e2e/firestore/transactions.e2e.js @@ -136,7 +136,7 @@ describe('firestore()', () => { should.equal(didReject, true); }); - it('handle native exceptions', async () => { + it.only('handle native exceptions', async () => { const firestore = firebase.firestore(); const docRef = testDocRef('tSet'); const blockedRef = firestore.doc('denied/foo'); @@ -152,7 +152,12 @@ describe('firestore()', () => { try { await firestore.runTransaction(updateFunction); } catch (e) { - e.message.should.containEql('firestore/failed-precondition'); + // TODO sdks are giving different errors - standardise? + if (device.getPlatform() === 'ios') { + e.message.should.containEql('firestore/failed-precondition'); + } else { + e.message.should.containEql('firestore/aborted'); + } didReject = true; } should.equal(didReject, true);