Skip to content

Commit

Permalink
Updated modal selector to be more exclusive.
Browse files Browse the repository at this point in the history
  • Loading branch information
1Copenut committed Nov 28, 2022
1 parent d1c8e3a commit 5389257
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,13 +421,13 @@ describe('index table', () => {
const rowIndex = 0;
openMenuAndClickButton(rendered, rowIndex, 'forcemergeIndexMenuButton');
snapshot(status(rendered, rowIndex));
expect(rendered.find('.euiModal').length).toBe(2);
expect(rendered.find('div.euiModal').length).toBe(1);

let count = 0;
store.subscribe(() => {
if (count === 1) {
snapshot(status(rendered, rowIndex));
expect(rendered.find('.euiModal').length).toBe(0);
expect(rendered.find('div.euiModal').length).toBe(0);
}
count++;
});
Expand Down

0 comments on commit 5389257

Please sign in to comment.