Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input component created #40

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

muskanbatra-dev
Copy link

No description provided.

type="textbox"
name={name}
value={value}
onChange={(e) => onChange(e.target.value)}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few pieces of feedback:

  1. add onBlur and onFocus event
  2. add data-test-id
  3. can we also allow ...rest ?

@@ -1,8 +1,8 @@
import StarbucksInput from './index.js';
import StarbucksInput from './StarbucksInput';
import { render, screen } from '@testing-library/react';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3rd party imports should be on the top always

import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event'

describe.skip('starbucks input tests', () => {
describe('starbucks input tests', () => {
test('it renders input component', async () => {
// Assemble
const elName = 'nickname';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use clear and elaborate variable names


function App() {
return (
<div className="App">
<StarbucksInput/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please clean the code not required here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants