Skip to content

Commit 27ed084

Browse files
committed
Fix tests
1 parent 6946c24 commit 27ed084

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/__tests__/components/User.spec.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ describe("User", function () {
126126
const inputElements = TestUtils.scryRenderedDOMComponentsWithTag(tree, "input");
127127
const selectElements = TestUtils.scryRenderedDOMComponentsWithTag(tree, "select");
128128

129-
expect(inputElements.length).toEqual(5);
129+
expect(inputElements.length).toEqual(4);
130130
expect(selectElements.length).toEqual(2);
131131

132132
for (let input of inputElements) {
@@ -298,7 +298,7 @@ describe("User", function () {
298298
}
299299
}
300300
const selects = TestUtils.scryRenderedDOMComponentsWithTag(tree, "select");
301-
expect(selects.length).toEqual(2);
301+
expect(selects.length).toEqual(1);
302302
const randomButton = TestUtils.scryRenderedDOMComponentsWithClass(tree, "glyphicon");
303303
expect(randomButton.length).toEqual(0);
304304
});
@@ -344,7 +344,7 @@ describe("User", function () {
344344
}
345345
}
346346
const selects = TestUtils.scryRenderedDOMComponentsWithTag(tree, "select");
347-
expect(selects.length).toEqual(2);
347+
expect(selects.length).toEqual(1);
348348
});
349349

350350
it("renders filled user's form", function () {
@@ -416,7 +416,7 @@ describe("User", function () {
416416
</IntlProvider>,
417417
);
418418
const buttons = TestUtils.scryRenderedDOMComponentsWithTag(tree, "Button");
419-
expect(buttons.length).toEqual(5);
419+
expect(buttons.length).toEqual(3);
420420

421421
TestUtils.Simulate.click(buttons[4]); // cancel
422422
expect(handlers.onCancel).toHaveBeenCalled();
@@ -442,7 +442,7 @@ describe("User", function () {
442442
);
443443
const buttons = TestUtils.scryRenderedDOMComponentsWithTag(tree, "Button");
444444

445-
expect(buttons.length).toEqual(5);
445+
expect(buttons.length).toEqual(3);
446446

447447
TestUtils.Simulate.click(buttons[4]); // back to institution
448448
expect(handlers.onCancel).toHaveBeenCalled();

0 commit comments

Comments
 (0)