You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 rivejä
1.1 KiB

  1. var assert = require("assert");
  2. module.exports = {
  3. "Can save password profile": function(browser) {
  4. browser
  5. .url(browser.launch_url)
  6. .waitForElementVisible(".fa-sign-in")
  7. .click(".fa-sign-in")
  8. .setValue("#email", "test@lesspass.com")
  9. .setValue("#passwordField", "test@lesspass.com")
  10. .waitForElementVisible("#encryptMasterPassword__btn")
  11. .click("#encryptMasterPassword__btn")
  12. .waitForElementVisible("#fingerprint .fa-university")
  13. .waitForElementVisible("#fingerprint .fa-btc")
  14. .waitForElementVisible("#fingerprint .fa-subway")
  15. .waitForElementVisible("#signInButton")
  16. .click("#signInButton")
  17. .waitForElementVisible("#site")
  18. .setValue("#site", "lesspass.com")
  19. .pause(100)
  20. .setValue("#login", "test@lesspass.com")
  21. .pause(100)
  22. .setValue("#passwordField", "test@lesspass.com")
  23. .pause(100)
  24. .waitForElementVisible("#generatePassword__btn")
  25. .click("#generatePassword__btn")
  26. .waitForElementVisible("#generated-password")
  27. .waitForElementVisible(".fa-save");
  28. browser.end();
  29. }
  30. };