detox-web
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

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

Package Sidebar

Install

npm i detox-web

Weekly Downloads

13

Version

0.5.1

License

MIT

Unpacked Size

20.3 kB

Total Files

15

Last publish

Collaborators

  • web-ridge