Files
react-native-config/Example/__tests__/ShowEnv.test.js
T
Bartosz Sosnowski 8616212e61 Add Windows support (#492)
Add support for react-native-windows. Update the docs and example and
add an automatic CI test.
2020-09-16 11:28:13 -03:00

24 lines
582 B
JavaScript

import { driver, By2 } from 'selenium-appium'
import { until } from 'selenium-webdriver';
const setup = require('../jest-setups/jest.setup');
jest.setTimeout(60000);
beforeAll(() => {
return driver.startWithCapabilities(setup.capabilites);
});
afterAll(() => {
return driver.quit();
});
describe('Test App', () => {
test('API_URL present', async () => {
// Get the element by label, will fail if the element is not present
// we use the API_URL from the .env file
await driver.wait(until.elementLocated(By2.nativeName('API_URL=http://localhost')));
});
})