Skip to content

Commit

Permalink
chore: improve android test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zdravko Branzov authored and Zdravko Branzov committed Jun 13, 2018
1 parent c1a3f31 commit cec4730
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions demo/e2e/test.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,17 @@ describe("Facebook tests", async function () {

if (isAndroid) {
const allFields = await driver.driver.waitForElementsByClassName(driver.locators.getElementByName("textfield"), 10000);
await allFields[1].click().sendKeys(PASSWORD);
await allFields[0].click().sendKeys(USERNAME);
const wd = driver.wd();
const action = new wd.TouchAction(driver.driver);
action.press({ x: 52, y: 499 })
.moveTo({ x: -2, y: -294 })
.release();
await action.perform();
await driver.wait(1000);
await allFields[1].sendKeys(PASSWORD);
await driver.driver.hideDeviceKeyboard();
await driver.wait(1000);
await allFields[0].sendKeys(USERNAME);
} else {
// const continueButton = await driver.findElementByText("Continue");
// await continueButton.click();
Expand Down

0 comments on commit cec4730

Please sign in to comment.