detox-web
v0.5.1
Published
Abstraction on top of puppeteer to support Detox test to run on the web platform
Downloads
7
Readme
detox-web
Abstraction is deprecated only helpers are left
Installation
yarn add detox-web
or
npm install detox-web
Usage
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');
});
});
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT