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

react_todo-app #1071

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

react_todo-app #1071

wants to merge 4 commits into from

Conversation

VvynnykV
Copy link

@VvynnykV
Copy link
Author

I cant understand how to fix it

1) Adding a todo should keep text field focused if title is empty: AssertionError: Timed out retrying after 4000ms: expected '<input.todoapp__new-todo>' to be 'focused' at Context.eval (webpack://react_todo-app/./cypress/integration/page.spec.js:349:26)

} finally {
setIsSubmiting(false);
}
}

Choose a reason for hiding this comment

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

Consider showing an error if the trimmed title is empty.

const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault();

setIsSubmiting(true);

Choose a reason for hiding this comment

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

Suggested change
setIsSubmiting(true);

const newTitle = title.trim();

if (newTitle) {
try {

Choose a reason for hiding this comment

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

Suggested change
try {
try {
setIsSubmiting(true);

Copy link

@etojeDenys etojeDenys left a comment

Choose a reason for hiding this comment

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

  1. let's fix this case
Screen.Recording.2024-10-31.at.11.15.39.mov

@VvynnykV VvynnykV requested a review from etojeDenys November 5, 2024 11:26
Copy link

@anastasiiavorobiova anastasiiavorobiova left a comment

Choose a reason for hiding this comment

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

Consider fixing the previous comment
Feel free to ask for help in the chat

@VvynnykV
Copy link
Author

VvynnykV commented Nov 5, 2024

I've already fixed it, but I don't make new deploy of the page, I thought it's not neccesary. So, I made deploy and now everything works correctly. Please check it.
https://vvynnykv.github.io/react_todo-app/

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Great work! 🔥

@coderBelal
Copy link

You have to change your UI

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.

5 participants