Skip to content

Commit

Permalink
Check if switched to edit mode after pressing submit
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Feb 19, 2020
1 parent 4ed8b69 commit 9bd3547
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,11 @@ describe('EditableTitle', () => {

expect(submitTitle).toHaveBeenCalled();
expect(submitTitle.mock.calls[0][0]).toEqual(newTitle);
expect(
wrapper
.find('[data-test-subj="editable-title-edit-icon"]')
.first()
.exists()
).toBe(true);
});
});

0 comments on commit 9bd3547

Please sign in to comment.