-
Notifications
You must be signed in to change notification settings - Fork 1
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
NW6 | Fikret Ellek | React-Module-Project | Week-2 | Order #45
Conversation
✅ Deploy Preview for cyf-react-hotel-project ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Add | ||
</button> | ||
</li> | ||
<Order /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
export default function RestaurantButton({ handleAddOrder }) { | ||
return ( | ||
<button className="button restaurant__button" onClick={handleAddOrder}> | ||
Add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work!
fireEvent.click(addButton); | ||
const updatedPizzaText = screen.getByText("Orders: 1"); | ||
|
||
expect(updatedPizzaText).toBeInTheDocument(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looking good. Love the complex, useful tests!
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.