Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* eslint-disable no-undef */
- const { randomNumber } = require('../Helpers/index.js')
- const mockNotification = {
- "trigger": {
- "type": "push"
- },
- "title": "from local notification",
- "subtitle": "from local notification",
- "body": "from local notification",
- "badge": 1,
- "payload": {
- "key1": "1",
- "key2": "2"
- },
- "category": "com.fuseuniversal.testmobile",
- "content-available": 0,
- "action-identifier": "default"
- }
- describe.only('SPIKE PUSH NOTIFICATION || "testmobile" || scenario' + ' >> ' + randomNumber, () => {
- beforeEach(async () => {
- await device.launchApp({ notification: mockNotification })
- // await device.reloadReactNative()
- })
- it('Local notification from inside the app', async () => {
- await device.sendUserNotification(mockNotification)
- await expect(element(by.text('from local notificaton'))).toBeVisible()
- })
- })
Add Comment
Please, Sign In to add comment