Refactor multiline formatting, link definitions, and code consistency across components and tests
- Improved readability by updating multiline statements and object definitions. - Applied consistent link and button wrapping in `DemoSection` and other components. - Enhanced test assertions and helper functions with uniform formatting and parentheses usage.
This commit is contained in:
@@ -264,10 +264,10 @@ describe('HomePage', () => {
|
||||
const tryDemoButtons = screen.getAllByRole('button', { name: /try demo/i });
|
||||
fireEvent.click(tryDemoButtons[0]);
|
||||
expect(screen.getByTestId('demo-modal')).toBeInTheDocument();
|
||||
|
||||
|
||||
// Close the modal
|
||||
const closeButtons = screen.getAllByRole('button', { name: /close/i });
|
||||
const modalCloseButton = closeButtons.find(btn => btn.textContent === 'Close');
|
||||
const modalCloseButton = closeButtons.find((btn) => btn.textContent === 'Close');
|
||||
if (modalCloseButton) {
|
||||
fireEvent.click(modalCloseButton);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user