1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
/* Initial Simple Detox Test Setup. Can potentially add more unit tests. */
describe('OnnxruntimeModuleExample', () => {
beforeAll(async () => {
await device.launchApp();
});
it('OnnxruntimeModuleExampleE2ETest CheckInferenceResultValueIsCorrect', async () => {
if (device.getPlatform() === 'ios') {
await expect(element(by.label('output')).atIndex(1)).toHaveText('Result: 3');
}
if (device.getPlatform() === 'android') {
await expect(element(by.label('output'))).toHaveText('Result: 3');
}
});
});
|