-
Notifications
You must be signed in to change notification settings - Fork 501
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
Using zombie.js version 4.1.0 will not work in Chapter 5 #38
Comments
I had more issues with this section, it wouldn't work with 4.0.8 so I took the version from the package.json in the git repo and installed them.
|
I appreciate the challenge the author faces with regards to the fact that node.js is relatively new and depends on so many other modules to get an application working. Node it self and its dependencies are evolving so fast that, keeping your applications current is huge challenge. I am also having the same issues as the original author and I've tried all sort of suggestions without success. I have spent two days now trying to find a fix. For a newbie this could be the difference between abandoning the book and following through to the end. I would be most grateful if the authour could find some time to update the book and the code to current versions of depencies. For example I tried on my own to change code in tests-crosspage.js to match the current zombie.js version. However it looks like browser.clickLink in no longer available in the latest zombie.js and I'm now stuck on finding an equivalent method by reading the doc. This is the reason why I bought the pdf version of the book because I anticipated, issues like these however I was hoping that any changes will be updated much more quickly in the pdf than the hard copy. Thank you very much author for a good book, please try and update the code for us. After all what is the point of learning a skill using old packages only to find out later that you cannot use any on the current packages to solve problem. EDIT: |
I am also having this issue and when I try to install npm install --save-dev zombie@3.1.1 I get the following: npm ERR! contextify@0.1.15 install: Could do with some pointers here as I am struggling to progress part this bit. |
On top of that when I go to us jshint I get the following: |
Hello @marcdavies87 and @ThePreacher! This is Ethan, the author (yes, I have a name!) I'm sorry you're having some issues with Zombie; I believe I will remove the dependence on Zombie in a future edition of the book as it has caused nothing but problems, especially with people on Windows. The book is not about QA, and it's possible that I was over-reaching by trying to include a topic that could be a whole book itself in a single chapter. Certainly I will be trimming down this content, especially as it relates to Zombie, as I do not have the bandwidth to continually keep the code up-to-date: I have a full-time job, am finishing up grad school, and have just finished another book. Technologies in the Node space move very fast, and I am not making enough money from this book to keep everything up to date. I do welcome community solutions, and I am hoping to publish a second edition of this book in 2017, at which point I will thoroughly update everything. I will say that all code in all chapters in the repo (with the version listed in I would not beat your head forever against Zombie issues; it is only used for the cross-page tests, and unless you are a QA engineer (in which case you should be reading other books as well), I think you can disable or remove the cross-page tests and proceed without them. Once again, I happily accept community fixes; it is unlikely I will have time to look into this thorny issue in more depth any time soon...perhaps spring break. |
Hey @EthanRBrown I've made a PR (estevanmaito/zombie@5584faa) that solves this problem. I've already changed history.js locally and it works! |
Hey @estevanmaito like: `
Browser.localhost('localhost', 3000); describe('User visits test-crosspage ', function() {
}); (2) mocha -t 9999 -u bdd -R spec qa/test3.js (3)bug
|
Hi all! Tx Ethan for this cool book!! I'm from Russia and this book translated on russian. Now zombie work on windows but for correct working need to change qa/tests-crosspage.js like nikolaysalinder/Meadowlark-Travel@8a90f15 |
The problem appears to be with the use of chai.assert. When I updated the code to use the zombie browser.assert method it worked as it should have done. The updates suggested by @estevanmaito work other than he left one of the tests using the chai.assert method. Here is the completed test that I have ran on both IBM i (ppc64) and Linux (debian) with satisfactory results.
I hope that helps those continuing to follow the book? So far so good. |
Thanks everyone for the contributions! In the next edition of the book (which I'm working on now), I will be moving away from Zombie. It's still a useful testing tool, but I think it has caused more problems in this book than it has solved. Thanks again for reading! |
I read book. I am on chapter 5. And I struggle with Zombie.
So assert should be But I think the problem is Zombie does not executes javascript
so |
It seems |
this comment helped me https://stackoverflow.com/a/35952530/14818086 |
Hello guys.
|
On page 46 one needs to install zombie, this will, however, install version 4.1.0. 4.1.0 is for some reason not supported (assaf/zombie#909) and thus I installed 4.0.8.
The text was updated successfully, but these errors were encountered: