mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
17 lines
444 B
TypeScript
17 lines
444 B
TypeScript
import { by, device, element, expect } from 'detox';
|
|
|
|
describe('Test suite 1', () => {
|
|
beforeAll(async () => {
|
|
await device.relaunchApp();
|
|
});
|
|
|
|
it('should have welcome screen', async () => {
|
|
await expect(element(by.id('welcome'))).toBeVisible();
|
|
});
|
|
|
|
it('should show hello screen after tap', async () => {
|
|
await element(by.id('hello_button')).tap();
|
|
await expect(element(by.text('Hello!!!'))).toBeVisible();
|
|
});
|
|
});
|