Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: clear prompt after task creation#20344

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
BrunoQuaresma merged 1 commit intomainfrombq/clear-prompt-after-task-creation
Oct 17, 2025

Conversation

@BrunoQuaresma
Copy link
Contributor

@BrunoQuaresmaBrunoQuaresma commentedOct 16, 2025
edited
Loading

@BrunoQuaresmaBrunoQuaresma requested a review froma teamOctober 16, 2025 13:48
@BrunoQuaresmaBrunoQuaresma self-assigned thisOct 16, 2025
@BrunoQuaresmaBrunoQuaresma requested review fromaqandrew and removed request fora teamOctober 16, 2025 13:48
Copy link
Contributor

@ParkreinerParkreiner left a comment

Choose a reason for hiding this comment

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

Changes make sense to me. Just had one suggestion if we can get it to work

Comment on lines +118 to +121
awaitstep("Clears prompt",async()=>{
constprompt=awaitcanvas.findByLabelText(/prompt/i);
expect(prompt).toHaveValue("");
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we able to use a role selector here? Maybe something like:

constprompt=awaitcanvas.findByRole("textbox",{name:/prompt/i,});

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I think it’s more accessible in this case to rely on the label, since that’s what both screen readers and users interact with. For example, when we get an element by role, we’re not checking whether it actually has an accessible label.

By getting an element by label, I don’t really care what type of element it is, because I can still perform the action I need.

Makes sense?

@BrunoQuaresmaBrunoQuaresma merged commit09a41f3 intomainOct 17, 2025
35 checks passed
@BrunoQuaresmaBrunoQuaresma deleted the bq/clear-prompt-after-task-creation branchOctober 17, 2025 12:56
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 17, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@aslilacaslilacAwaiting requested review from aslilac

@aqandrewaqandrewAwaiting requested review from aqandrewaqandrew was automatically assigned from coder/ts

1 more reviewer

@ParkreinerParkreinerParkreiner approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

@BrunoQuaresmaBrunoQuaresma

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

bug: coder task prompt box no longer clears after creating a new task

3 participants

@BrunoQuaresma@Parkreiner

[8]ページ先頭

©2009-2025 Movatter.jp