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

Use nightwatch.js for functional tests #122

Merged
merged 21 commits into from Feb 12, 2017
Merged

Use nightwatch.js for functional tests #122

merged 21 commits into from Feb 12, 2017

Conversation

shvaikalesh
Copy link
Contributor

Each test case happen in separate process (Chrome gets restarted every time). If browser.end() is dropped, random tests start to fail. It takes 50sec on my machine to run them all. Please, let me know if we should find a way around this and whether I should prioritize this.

module.exports = {
before: done => {
chromedriver.start();
done();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done() should always be called.


'changes slides states when moving backward': browser => {
browser.url(`file:///${__dirname}/list.html#3`);
browser.keys(browser.Keys.ARROW_LEFT);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nightwatch's constants for key codes are cool.

@@ -0,0 +1,16 @@
<!DOCTYPE html>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Several tests had

  1. open list
  2. go full
  3. really test stuff

algorithms in keys/tests.js. With addition of this file, they are greatly simplified.

@pepelsbey
Copy link
Member

(Shift) F5 key has dropped in 2f0af4d so test could be dropped as well, otherwise WFM locally and LGTM in general.

@shvaikalesh
Copy link
Contributor Author

I've also added tests for a1567ac

@shvaikalesh shvaikalesh merged commit 470fd33 into master Feb 12, 2017
@shvaikalesh shvaikalesh deleted the use-nightwatch branch February 12, 2017 18:49
@pepelsbey
Copy link
Member

There are still some wdio dependencies left:

    "wdio-allure-reporter": "^0.1.2",
    "wdio-dot-reporter": "0.0.6",
    "wdio-mocha-framework": "^0.5.7",
    "webdriverio": "^4.2.15",

Do we still need selenium-standalone and related prebuild script?

Could you please clean up?

@shvaikalesh
Copy link
Contributor Author

Oops, my bad. Please, see #123.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants