FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

+ test case for labels · Chhabi/JavaScriptButtons@cf3ff7f · GitHub

Repository navigation

Commit cf3ff7f

Browse files
Jeff Harrell
committed
+ test case for labels
1 parent 4575985 commit cf3ff7f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎test/functional/spec/test.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@ describe('Editable buttons', function () {
135135
inputs[0].parentNode.children[0].className.should.include('paypal-label');
136136
});
137137

138+
it('Should have proper labels', function () {
139+
var labels = document.querySelectorAll('#buynow-editable label');
140+
141+
labels[0].textContent.should.equal('Item');
142+
labels[1].textContent.should.equal('Amount');
143+
labels[2].textContent.should.equal('Quantity');
144+
});
145+
138146
it('Should have a CSS class on the container', function () {
139147
inputs[0].parentNode.className.should.include('paypal-group');
140148
});

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL