Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fabo/added sign in e2e test #2532

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/fabo_sign-in-e2e-test
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Added] [#2532](https://github.com/cosmos/lunie/pull/2532) Added a sign in e2e test (to demo e2e tests) @faboweb
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"test": "yarn run lint && yarn test:unit && yarn test:e2e",
"test:unit": "cross-env NODE_ENV=testing jest --maxWorkers=2",
"test:e2e": "nightwatch --config ./test/e2e/nightwatch.conf.js",
"test:e2e:prepare": "cross-env STARGATE=http://localhost:9070 RPC=http://localhost:26657 CIRCLECI=true yarn build:ui & yarn serve --no-browser ",
"test:exe": "node tasks/test-build.js",
"test:coverage": "http-server test/unit/coverage/lcov-report",
"release": "git checkout develop & git pull & git push origin develop:release",
Expand Down Expand Up @@ -154,4 +155,4 @@
]
}
}
}
}
18 changes: 18 additions & 0 deletions test/e2e/signin.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
url: `http://localhost:8081`,
"Sign in": function(browser) {
browser
.url(browser.launch_url + "?insecure=true")
.waitForElementVisible(`body`)
.waitForElementVisible(`#app-content`)
.click(".sign-in-button")
.waitForElementVisible("#session-welcome")
.click("#sign-in-with-account")
.waitForElementVisible("#sign-in-name")
.click("#sign-in-name option[value=rich_account]")
.setValue("#sign-in-password", "1234567890")
.click(".tm-session-footer button")
.waitForElementVisible("#signOut-btn")
.end()
}
}
20 changes: 0 additions & 20 deletions test/e2e/test.spec.js

This file was deleted.