Skip to content
Permalink
Branch: master
Go to file
 
 
Cannot retrieve contributors at this time
26 lines (22 sloc) 738 Bytes
import { By2 } from 'selenium-appium'
import TestEnviroment from '../TestEnviroment'
const oneButton = By2.nativeName('One');
const plusButton = By2.nativeName('Plus');
const sevenButton = By2.nativeName('Seven');
const equalButton = By2.nativeName('Equals');
const calculatorResult = By2.nativeAccessibilityId('CalculatorResults');
beforeAll(() => {
return TestEnviroment.setup();;
})
afterAll(() => {
return TestEnviroment.teardown();
})
describe('Calculator Test', () => {
test('Plus', async () => {
await oneButton.click();
await plusButton.click();
await sevenButton.click();
await equalButton.click();
expect(await calculatorResult.getText()).toBe('Display is 8');
})
});
You can’t perform that action at this time.