25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

loginLogout.js 993 B

7 년 전
123456789101112131415161718192021222324252627
  1. var assert = require("assert");
  2. module.exports = {
  3. "Login logout tests": function(browser) {
  4. browser
  5. .url(browser.launch_url)
  6. .waitForElementVisible(".fa-sign-in")
  7. .click(".fa-sign-in")
  8. .waitForElementVisible("#baseURL")
  9. .assert.value("#baseURL", "https://lesspass.com")
  10. .setValue("#email", "test@lesspass.com")
  11. .setValue("#passwordField", "test@lesspass.com")
  12. .waitForElementVisible("#fingerprint .fa-cutlery")
  13. .waitForElementVisible("#fingerprint .fa-subway")
  14. .waitForElementVisible("#fingerprint .fa-plane")
  15. .waitForElementVisible("#encryptMasterPassword__btn")
  16. .click("#encryptMasterPassword__btn")
  17. .waitForElementVisible("#fingerprint .fa-university")
  18. .waitForElementVisible("#fingerprint .fa-btc")
  19. .waitForElementVisible("#fingerprint .fa-subway")
  20. .waitForElementVisible("#signInButton")
  21. .click("#signInButton")
  22. .waitForElementVisible("#site");
  23. browser.end();
  24. }
  25. };