We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d138b96 + 8c15a84 commit 9add5d6Copy full SHA for 9add5d6
1 file changed
app/page.test.tsx
@@ -166,6 +166,24 @@ describe('LandingPage', () => {
166
});
167
168
169
+ it('disables Copy Link button when username is empty', () => {
170
+ render(<LandingPage />);
171
+
172
+ const copyButton = screen.getByText('Copy Link').closest('button');
173
174
+ expect(copyButton?.disabled).toBe(true);
175
+ });
176
177
+ it('does not copy link when username is empty', () => {
178
179
180
181
182
+ fireEvent.click(copyButton!);
183
184
+ expect(navigator.clipboard.writeText).not.toHaveBeenCalled();
185
186
187
it('renders the FeatureCards', () => {
188
render(<LandingPage />);
189
expect(screen.getByText('Real-time Sync')).toBeDefined();
0 commit comments