Skip to content

web-ridge/detox-web

Repository files navigation

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', 'test-onboarding@webridge.nl');
    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

About

Abstraction on top of puppeteer to support Detox test to run on the web platform

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors