Rebrand and updated copyright date
This commit is contained in:
@@ -133,7 +133,7 @@ describe('AuthModal', () => {
|
||||
it('should render login form by default', () => {
|
||||
const { container } = render(<AuthModal {...defaultProps} />);
|
||||
|
||||
expect(screen.getByText('Welcome to CommunityRentals.App')).toBeInTheDocument();
|
||||
expect(screen.getByText('Welcome to Village Share')).toBeInTheDocument();
|
||||
expect(getInputByLabelText(container, 'Email')).toBeInTheDocument();
|
||||
expect(screen.getByTestId('password-input')).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: 'Log in' })).toBeInTheDocument();
|
||||
@@ -151,7 +151,7 @@ describe('AuthModal', () => {
|
||||
it('should not render when show is false', () => {
|
||||
render(<AuthModal {...defaultProps} show={false} />);
|
||||
|
||||
expect(screen.queryByText('Welcome to CommunityRentals.App')).not.toBeInTheDocument();
|
||||
expect(screen.queryByText('Welcome to Village Share')).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should render Google login button', () => {
|
||||
|
||||
@@ -68,13 +68,13 @@ describe('Navbar', () => {
|
||||
it('should display the brand name', () => {
|
||||
renderWithRouter(<Navbar />);
|
||||
|
||||
expect(screen.getByText('CommunityRentals.App')).toBeInTheDocument();
|
||||
expect(screen.getByText('Village Share')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should link brand to home page', () => {
|
||||
renderWithRouter(<Navbar />);
|
||||
|
||||
const brandLink = screen.getByRole('link', { name: /CommunityRentals.App/i });
|
||||
const brandLink = screen.getByRole('link', { name: /Village Share/i });
|
||||
expect(brandLink).toHaveAttribute('href', '/');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user