What happens after Cancel?
Open a support chat, tap Attach, then close the file picker. Maybe you picked the wrong conversation. Maybe you just want to check the photo first. A moment later, you tap Attach again.
That second tap was where an Ada chat integration I worked on in Flutter could go wrong. A person who picked a file straight away could carry on. A person who dismissed the picker could come back to a button that no longer worked.
Follow the return trip
The chat asks for a file and the phone opens its picker. Choosing a photo sends something back that I can see in the conversation. Cancelling is quieter. The picker disappears, and the chat looks much the same as it did before.
To narrow down that kind of bug, I follow the second attempt. Does tapping the button make another request? Does the phone open the picker? If I choose a file this time, does it appear once in the chat? Each answer narrows the stretch of code I need to read.
That’s also the sequence I’d keep as a regression test. Cancel once, open the picker again, and attach something. The last step checks the thing the person came back to do.