Skip to content

Answering confirmation [y] [n] does not work #57

Description

@jmohre411

I tried use to framework to answer confirmation queries e.g. with Y.
The script I have written seems to stuck after the expect statement.

Script

await terminal.submit("rm urgs.txt -confirm");   
await expect(terminal.getByText("Suspend", {full: false, strict: false})).toBeVisible();
terminal.submit("Y");

Output of sample command rm using confirmation.

> rm urgs.txt -confirm

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove File" on target
"C:\Users\jmohre\Documents\Workspaces\tuiTest\urgs.txt".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help

Is answering confirmations supported?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions