Skip to content

Commit

Permalink
Simplify our export/delete clicks in jest tests
Browse files Browse the repository at this point in the history
The less we assume about the UI, the more robust these'll be.
  • Loading branch information
rylnd committed Jul 29, 2020
1 parent 65f3953 commit 3653c46
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ describe('ValueListsModal', () => {

act(() => {
container
.find('tbody tr')
.first()
.find('button[data-test-subj="action-export-value-list"]')
.first()
.simulate('click');
container.unmount();
});
Expand All @@ -120,9 +119,8 @@ describe('ValueListsModal', () => {

act(() => {
container
.find('tbody tr')
.first()
.find('button[data-test-subj="action-delete-value-list"]')
.first()
.simulate('click');
container.unmount();
});
Expand Down

0 comments on commit 3653c46

Please sign in to comment.