How to test TUI applications?

Could you please recommend a framework or a tools to test input into TUI application?

This is not clear. TUI is a form of user interface. You can write test for the application yourself.

I can use this: GitHub - zhiburt/expectrl: A rust library for controlling interactive programs in a pseudo-terminal
But I need to make isatty to think it is interactive mode.
Not sure that is going to works.
Any experience with that?