Skip to content

Commit

Permalink
[Fix #26] Fixed tests considering new buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
LaChope committed Dec 7, 2023
1 parent 106fb0c commit c1cc707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/__tests__/components/Institution.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ describe('Institution', function () {
institutionSaved={institutionSaved}/>
</IntlProvider>);
const buttons = TestUtils.scryRenderedDOMComponentsWithTag(tree, "Button");
expect(buttons.length).toEqual(3);
expect(buttons.length).toEqual(4);

TestUtils.Simulate.click(buttons[1]); // cancel
expect(handlers.onCancel).toHaveBeenCalled();
Expand Down

0 comments on commit c1cc707

Please sign in to comment.