mirror of
https://github.com/status-im/react-native-config.git
synced 2026-08-31 14:41:07 +00:00
Add support for react-native-windows. Update the docs and example and add an automatic CI test.
24 lines
582 B
JavaScript
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')));
|
|
});
|
|
|
|
})
|