-
Notifications
You must be signed in to change notification settings - Fork 726
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix E2E tests adding missing webdriver
- Loading branch information
1 parent
b98f5b3
commit 9a845e4
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9a845e4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jpetitcolas, @Kmaschta I have a npm issue with that change :(
If I change my package.json to include this commit then this is the error I receive (I have masked some of the path for clarity):
9a845e4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be a windows only problem... Sorry, can't help.
9a845e4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I looked into a simple solution by changing the postinstall to call a local js script rather than the direct command line. The script is then setting the exec differently depending on the OS ..but...
In any case it will fail because it is looking for protractor inside the ng-admin/node_modules folder !
The good news, is that doing it inside a script means that the npm install is successful and I can use the sources
I am adding here the script. Can you test it on your side, and also let me know what is going on with the missing protractor dependency? Is it expected?
and in package.json simply:
"postinstall": "node.exe _postinstall.js"
9a845e4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node.exe
won't pass on unix. Is there anode
shortcut to runnode.exe
on windows?9a845e4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kmaschta you are right, then just use:
"postinstall": "node _postinstall.js"
This is accepted under Windows and Linux :)
9a845e4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Can you make a PR for that?