Skip to content

Commit 877fe46

Browse files
committed
fix(test) Update very brittle test to cope with modified styling
1 parent 6c36219 commit 877fe46

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/unit/formInputSpec.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ describe('formInput', function () {
111111
expect(thisElm).toHaveClass('schema-head');
112112
expect(thisElm.text()).toBe('Exams');
113113

114-
thisElm = angular.element(elm.find('div')[22]);
114+
thisElm = angular.element(elm.find('div')[20]);
115115
expect(thisElm).toHaveClass('schema-foot');
116116

117117
thisElm = thisElm.find('button');
@@ -122,7 +122,7 @@ describe('formInput', function () {
122122

123123
thisElm = angular.element(elm.find('div')[6]);
124124
expect(thisElm.attr('id')).toBe('f_examsList_0');
125-
thisElm = angular.element(elm.find('div')[14]);
125+
thisElm = angular.element(elm.find('div')[13]);
126126
expect(thisElm.attr('id')).toBe('f_examsList_1');
127127

128128
thisElm = elm.find('input');
@@ -273,7 +273,6 @@ describe('formInput', function () {
273273
}));
274274

275275
it('should have correct help blocks', function () {
276-
dump(elm);
277276
var help = elm.find('span');
278277
expect(help.length).toBe(2);
279278

0 commit comments

Comments
 (0)