Guest User

Untitled

a guest
Aug 15th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. /* eslint-disable no-undef */
  2. const { randomNumber } = require('../Helpers/index.js')
  3.  
  4. const mockNotification = {
  5. "trigger": {
  6. "type": "push"
  7. },
  8. "title": "from local notification",
  9. "subtitle": "from local notification",
  10. "body": "from local notification",
  11. "badge": 1,
  12. "payload": {
  13. "key1": "1",
  14. "key2": "2"
  15. },
  16. "category": "com.fuseuniversal.testmobile",
  17. "content-available": 0,
  18. "action-identifier": "default"
  19. }
  20.  
  21. describe.only('SPIKE PUSH NOTIFICATION || "testmobile" || scenario' + ' >> ' + randomNumber, () => {
  22. beforeEach(async () => {
  23. await device.launchApp({ notification: mockNotification })
  24. // await device.reloadReactNative()
  25. })
  26.  
  27. it('Local notification from inside the app', async () => {
  28.  
  29. await device.sendUserNotification(mockNotification)
  30. await expect(element(by.text('from local notificaton'))).toBeVisible()
  31. })
  32. })
Add Comment
Please, Sign In to add comment