diff --git a/examples/demo-react-native/e2e/example.spec.js b/examples/demo-react-native/e2e/example.spec.js index 3784b35203..ebffa3d0fc 100644 --- a/examples/demo-react-native/e2e/example.spec.js +++ b/examples/demo-react-native/e2e/example.spec.js @@ -2,18 +2,18 @@ describe('Example', () => { beforeEach(async () => { await device.reloadReactNative(); }); - + it('should have welcome screen', async () => { - await expect(element(by.label('Welcome'))).toBeVisible(); + await expect(element(by.id('welcome'))).toBeVisible(); }); - + it('should show hello screen after tap', async () => { - await element(by.label('Say Hello')).tap(); + await element(by.id('hello_button')).tap(); await expect(element(by.label('Hello!!!'))).toBeVisible(); }); - + it('should show world screen after tap', async () => { - await element(by.label('Say World')).tap(); + await element(by.id('world_button')).tap(); await expect(element(by.label('World!!!'))).toBeVisible(); }); -}); +}); \ No newline at end of file diff --git a/examples/demo-react-native/index.ios.js b/examples/demo-react-native/index.ios.js index c9c34b08c5..471bc82dea 100644 --- a/examples/demo-react-native/index.ios.js +++ b/examples/demo-react-native/index.ios.js @@ -23,14 +23,14 @@ class example extends Component { render() { if (this.state.greeting) return this.renderAfterButton(); return ( - + Welcome - + Say Hello - + Say World