Abstraction is deprecated only helpers are left
yarn add detox-web
or
npm install detox-web
import {
replaceTextById,
isVisibleByText,
isVisibleById,
tapById,
tapByText,
tapByLabel,
reset,
sleep
} from 'detox-web'
describe('User should be welcomed by required onboarding screen', () => {
beforeAll(async () => {
await resetAndLoginAs('user_onboarding');
});
it('we should be able to fill our details', async () => {
await replaceTextById('email', '[email protected]');
await replaceTextById('telephone', '0612345678');
await tapByText('English');
await tapByText('Nederlands');
await tapById('save-button-profile');
});
});
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT