Skip to content

Commit 922e38e

Browse files
test(DashboardClient): verify generate your own button points to root /
1 parent 8a50ac5 commit 922e38e

2 files changed

Lines changed: 36 additions & 11 deletions

File tree

components/dashboard/DashboardClient.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,4 +233,10 @@ describe('DashboardClient', () => {
233233
expect(screen.getAllByText('Shivangi').length).toBeGreaterThan(0);
234234
expect(screen.getAllByText('Sourav').length).toBeGreaterThan(0);
235235
});
236+
it('generate your own button points to root /', () => {
237+
render(<DashboardClient initialData={mockInitialData} username="Shivangi1515" />);
238+
239+
const generateLink = screen.getByRole('link', { name: /generate your own/i });
240+
expect(generateLink.getAttribute('href')).toBe('/');
241+
});
236242
});

package-lock.json

Lines changed: 30 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)