mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
18 lines
561 B
JavaScript
18 lines
561 B
JavaScript
describe('Stub2', () => {
|
|
beforeEach(async () => {
|
|
await device.reloadReactNative();
|
|
await element(by.text('Sanity')).tap();
|
|
});
|
|
|
|
it('should have welcome screen', async () => {
|
|
await expect(element(by.text('Welcome'))).toBeVisible();
|
|
await expect(element(by.text('Say Hello'))).toBeVisible();
|
|
await expect(element(by.text('Say World'))).toBeVisible();
|
|
});
|
|
|
|
it('should show hello screen after tap', async () => {
|
|
await element(by.text('Say Hello')).tap();
|
|
await expect(element(by.text('Hello!!!'))).toBeVisible();
|
|
});
|
|
});
|