summaryrefslogtreecommitdiff
path: root/e2e/firstTest.spec.js
blob: 91729fb7747ae002d8e2087b7ee5f7432f32df96 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// For more info on how to write Detox tests, see the official docs:
// https://github.com/wix/Detox/blob/master/docs/README.md

const { reloadApp } = require('./reload')

describe('Example', () => {
  beforeEach(async () => {
    await reloadApp()
  })

  it('should have welcome screen', async () => {
    await expect(element(by.id('WelcomeScreen'))).toBeVisible()
  })

  it('should go to next screen after tap', async () => {
    await element(by.id('next-screen-button')).tap()
    await expect(element(by.id('DemoScreen'))).toBeVisible()
  })
})