diff --git a/.circleci/config.yml b/.circleci/config.yml index 1db2e65f81a0b66eb3bc6ba414634e97bcb110dc..0ee3cf612ef70c517cec058d38f12cfb66846ef8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,18 +9,18 @@ jobs: - run: name: Install Dependencies command: scripts/install.ios.sh - # - run: - # name: Install Android - # command: scripts/install.android.sh + - run: + name: Install Android + command: scripts/install.android.sh - run: name: npm install command: npm install - # - run: - # name: iOS unit tests - # command: 'npm run test-unit-ios' - # - run: - # name: Android unit tests - # command: 'npm run test-unit-android' + - run: + name: iOS unit tests + command: 'npm run test-unit-ios' + - run: + name: Android unit tests + command: 'npm run test-unit-android' - run: name: Detox iOS e2e tests command: 'npm run test-e2e-ios-release' \ No newline at end of file diff --git a/e2e/Notifications.test.js b/e2e/Notifications.test.js index 9b49c7798633303a22c285505389fed8ae2f77a2..d6ede1100e04d84eff2674f7388cc1dd4f099751 100644 --- a/e2e/Notifications.test.js +++ b/e2e/Notifications.test.js @@ -7,28 +7,28 @@ describe('Notifications', () => { }); describe('Foreground', () => { - it('Receive notification', async () => { + it('Should receive notification', async () => { await device.sendUserNotification(createNotification({link: 'foreground/notification'})); await expect(elementByLabel('foreground/notification')).toBeVisible(); }); - it('Click notification', async () => { + it('Should open notification', async () => { await device.sendUserNotification(createNotification({link: 'foreground/notification/click', showAlert: true})); await expect(elementByLabel('Notification Clicked: foreground/notification/click')).toBeVisible(); }); }); describe('Background', () => { - it('Receive notification', async () => { + it('Should open notification', async () => { await device.sendToHome(); - await expect(elementByLabel('background/notification')).toBeNotVisible(); + await expect(elementByLabel('Notification Clicked: background/notification')).toBeNotVisible(); await device.launchApp({newInstance: false, userNotification: createNotification({link: 'background/notification'})}); - await expect(elementByLabel('background/notification')).toBeVisible(); + await expect(elementByLabel('Notification Clicked: background/notification')).toBeVisible(); }); }); describe('Dead state', () => { - it('Receive notification', async () => { + it('Should receive notification', async () => { await device.launchApp({newInstance: true, userNotification: createNotification({link: 'deadState/notification'})}); await expect(elementByLabel('deadState/notification')).toBeVisible(); });