refactor(jqLite): wrap the jqueryVersion binding in a span

Protractor's by.binding selector selects the whole element in which the binding
is contained as otherwise it can't know which bit of text has been interpolated.

It's safer to wrap the binding in a span so that we're sure what the e2e tests
are exactly testing.
This commit is contained in:
Michał Gołębiowski
2016-10-09 23:56:42 +02:00
committed by Pete Bacon Darwin
parent a02c8863f9
commit 138fbf0d6c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html ng-app="test" ng-jq="jQuery_2_1_0">
<body>
{{jqueryVersion}}
<span>{{jqueryVersion}}</span>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script>
+1 -1
View File
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html ng-app="test" ng-jq>
<body>
{{jqueryVersion}}
<span>{{jqueryVersion}}</span>
<script src="../../../../bower_components/jquery/dist/jquery.js"></script>
<script type="text/javascript">