Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Make Passphrase e2e test more stable #725

Closed
slaweet opened this issue Sep 11, 2017 · 0 comments
Closed

Make Passphrase e2e test more stable #725

slaweet opened this issue Sep 11, 2017 · 0 comments

Comments

@slaweet
Copy link
Contributor

slaweet commented Sep 11, 2017

Expected behaviour

"create a new account" e2e should pass/fail consistently

Actual behaviour

Sometimes it fails in Jenkins:
https://jenkins.lisk.io/job/lisk-nano/job/PR-724/2/console

  Scenario: should allow to create a new account
  �✔ Given I'm on login page�
  �✔ When I click "new account button"�
  �✔ And I click "next button"�
  �✔ And I 250 times move mouse randomly�
[11:42:45] W/element - more than one element found for locator By(css selector, .passphrase label) - the first result will be used
[11:42:45] E/launcher - each key must be a number of string; got undefined
[11:42:45] E/launcher - TypeError: each key must be a number of string; got undefined
    at TypeError (native)
    at keys.forEach.key (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/selenium-webdriver/lib/webdriver.js:2072:21)
    at Array.forEach (native)
    at Promise.all.then.keys (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/selenium-webdriver/lib/webdriver.js:2067:16)
    at process._tickCallback (internal/process/next_tick.js:109:7)
From: Task: WebElement.sendKeys()
    at Driver.schedule (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/selenium-webdriver/lib/webdriver.js:816:17)
    at WebElement.schedule_ (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/selenium-webdriver/lib/webdriver.js:1921:25)
    at WebElement.sendKeys (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/selenium-webdriver/lib/webdriver.js:2084:19)
    at actionFn (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/protractor/lib/element.ts:94:34)
    at Array.map (native)
    at actionResults.getWebElements.then (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/protractor/lib/element.ts:484:67)
    at ManagedPromise.invokeCallback_ (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/selenium-webdriver/lib/promise.js:1366:14)
    at TaskQueue.execute_ (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/selenium-webdriver/lib/promise.js:2970:14)
    at TaskQueue.executeNext_ (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/selenium-webdriver/lib/promise.js:2953:27)
    at asyncRun (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/selenium-webdriver/lib/promise.js:2813:27)
    at /home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/selenium-webdriver/lib/promise.js:676:7
    at process._tickCallback (internal/process/next_tick.js:109:7)Error
    at ElementArrayFinder.applyAction_ (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/protractor/lib/element.ts:482:23)
    at ElementArrayFinder.(anonymous function) [as sendKeys] (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/protractor/lib/element.ts:96:21)
    at ElementFinder.(anonymous function) [as sendKeys] (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/protractor/lib/element.ts:873:14)
    at element.all.get.getText.then (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/features/step_definitions/generic.step.js:150:55)
    at elementArrayFinder_.then (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/protractor/lib/element.ts:840:22)
    at ManagedPromise.invokeCallback_ (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/selenium-webdriver/lib/promise.js:1366:14)
    at TaskQueue.execute_ (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/selenium-webdriver/lib/promise.js:2970:14)
    at TaskQueue.executeNext_ (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/selenium-webdriver/lib/promise.js:2953:27)
    at asyncRun (/home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/selenium-webdriver/lib/promise.js:2813:27)
    at /home/lisk/workspace/lisk-nano_PR-724-LITUYBWAM7USPXTW3P5KVJDQJEC2774E6AEOXKMD6XGX7UOQNTNA/node_modules/selenium-webdriver/lib/promise.js:676:7
    at process._tickCallback (internal/process/next_tick.js:109:7)
[11:42:45] E/launcher - Process exited with error code 199
@slaweet slaweet added the *easy label Sep 20, 2017
@reyraa reyraa changed the title Make "create a new account" e2e test more stable Make Passphrase e2e test more stable Sep 28, 2017
reyraa added a commit that referenced this issue Sep 28, 2017
Stabilise Passphrase e2e tests - Closes #725
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants