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:
committed by
Pete Bacon Darwin
parent
a02c8863f9
commit
138fbf0d6c
@@ -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,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">
|
||||
|
||||
Reference in New Issue
Block a user