Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions RNTester/e2e/__tests__/Switch-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,13 @@
const jestExpect = require('expect');

describe('Switch', () => {
beforeAll(async () => {
beforeEach(async () => {
await device.reloadReactNative();
await element(by.id('explorer_search')).replaceText('<Switch>');
await element(by.label('<Switch> Native boolean input')).tap();
});

afterAll(async () => {
await element(by.label('Back')).tap();
});

it('Switch that starts on should switch', async () => {
it('Switch that starts off should switch', async () => {
const testID = 'on-off-initial-off';
const indicatorID = 'on-off-initial-off-indicator';

Expand All @@ -34,7 +30,7 @@ describe('Switch', () => {
await expect(element(by.id(indicatorID))).toHaveText('On');
});

it('Switch that starts off should switch', async () => {
it('Switch that starts on should switch', async () => {
const testID = 'on-off-initial-on';
const indicatorID = 'on-off-initial-on-indicator';

Expand Down