Skip to content

Commit 3653c46

Browse files
committed
Simplify our export/delete clicks in jest tests
The less we assume about the UI, the more robust these'll be.
1 parent 65f3953 commit 3653c46

File tree

1 file changed

+2
-4
lines changed
  • x-pack/plugins/security_solution/public/detections/components/value_lists_management_modal

1 file changed

+2
-4
lines changed

x-pack/plugins/security_solution/public/detections/components/value_lists_management_modal/modal.test.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,8 @@ describe('ValueListsModal', () => {
9696

9797
act(() => {
9898
container
99-
.find('tbody tr')
100-
.first()
10199
.find('button[data-test-subj="action-export-value-list"]')
100+
.first()
102101
.simulate('click');
103102
container.unmount();
104103
});
@@ -120,9 +119,8 @@ describe('ValueListsModal', () => {
120119

121120
act(() => {
122121
container
123-
.find('tbody tr')
124-
.first()
125122
.find('button[data-test-subj="action-delete-value-list"]')
123+
.first()
126124
.simulate('click');
127125
container.unmount();
128126
});

0 commit comments

Comments
 (0)