2018-12-07 14:52:06 -08:00
|
|
|
/**
|
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*
|
|
|
|
* @emails oncall+react_native
|
|
|
|
* @format
|
|
|
|
*/
|
|
|
|
|
2018-12-31 04:30:58 -08:00
|
|
|
/* global device, element, by, expect */
|
|
|
|
const {
|
|
|
|
openComponentWithLabel,
|
|
|
|
openExampleWithTitle,
|
|
|
|
} = require('../e2e-helpers');
|
2018-12-07 14:52:06 -08:00
|
|
|
|
|
|
|
describe('Picker', () => {
|
|
|
|
beforeAll(async () => {
|
2018-12-31 04:30:58 -08:00
|
|
|
await device.reloadReactNative();
|
|
|
|
await openComponentWithLabel(
|
|
|
|
'<Picker>',
|
|
|
|
'<Picker> Provides multiple options to choose from, using either a dropdown menu or a dialog.',
|
|
|
|
);
|
2018-12-07 14:52:06 -08:00
|
|
|
});
|
|
|
|
|
|
|
|
it('should be selectable by ID', async () => {
|
2018-12-31 04:30:58 -08:00
|
|
|
await openExampleWithTitle('Basic picker');
|
2018-12-07 14:52:06 -08:00
|
|
|
await expect(element(by.id('basic-picker'))).toBeVisible();
|
|
|
|
});
|
|
|
|
});
|