Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upselenium-webdriver-winappdriver-example/__tests__/calculator.spec.ts /
Go to file| 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'); | |
| }) | |
| }); |