Skip to content

Commit 86cb773

Browse files
jasonbahltheodesp
authored andcommitted
- update regex's
1 parent 7acf1cf commit 86cb773

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/faustwp-core/tests/components/Toolbar/ToolbarItem.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ import { ToolbarNode } from '../../../src/components/Toolbar';
66

77
test('renders the component correctly', () => {
88
render(<ToolbarNode />);
9-
const liElement = screen.getByRole(/listitem/i);
9+
const liElement = screen.getByRole('listitem');
1010
expect(liElement).toBeInTheDocument();
1111
});

packages/faustwp-core/tests/components/Toolbar/ToolbarNode.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ import { ToolbarNode } from '../../../src/components/Toolbar';
66

77
test('renders the component correctly', () => {
88
render(<ToolbarNode id="1" />);
9-
const aElement = screen.getByRole(/listitem/i);
9+
const aElement = screen.getByRole('listitem');
1010
expect(aElement).toBeInTheDocument();
1111
});

packages/faustwp-core/tests/components/Toolbar/ToolbarSubmenu.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ import { ToolbarSubmenu } from '../../../src/components/Toolbar';
66

77
test('renders the component correctly', () => {
88
render(<ToolbarSubmenu id="1" />);
9-
const aElement = screen.getByRole(/list/i);
9+
const aElement = screen.getByRole('list');
1010
expect(aElement).toBeInTheDocument();
1111
});

0 commit comments

Comments
 (0)