# Flows with more than one person

> Test what happens between people, such as an invitation, each in a browser of their own.

Source: https://rehearsal.dev/docs/reagent/more-than-one-person

Some flows need two people. An owner invites a teammate, or a seller ships an order to a buyer. Re:agent can use up to four browsers in one flow, one for each person.

Each browser is separate. It has its own tabs, its own sign-in and one test account at most. Nothing is shared between them.

## Describe the flow

Name each person and say what they do, in order. Say what the last person should see at the end. For example: "The admin invites a new member by email. The member opens the invitation, joins the workspace and sees the Launch project."

Give each person who signs in a test account. A person who signs up needs none, and gets a new address with a [test inbox](https://rehearsal.dev/docs/reagent/test-inbox.md). A person who signs in and receives an email needs an account with a test inbox, such as one that signs in **with an email code or link**.

## What you see

- The panel shows one card for each browser, named after the person.
- In the chat, each page Re:agent worked on says whose browser it was in.
- **Follow the agent** takes you back to the browser Re:agent is using.
- A question about one browser names that person. The other browsers stay open while you answer.

## Saving the flow

Re:agent can close one browser and keep the others open. Saving saves every person's steps together, in the order they happened, as one flow.

The written test opens a separate browser for each person and repeats their steps in the same order. Rehearsal accepts it only when it covers every person in the flow.

When one person sends something to another, the test checks it on the receiving side. A confirmation on the sender's page is not enough.

## Limits

- A flow has four people at most.
- Every browser in a flow belongs to the same project.
- Tabs of one person share that person's account. A person has one test account at most.
- For an app on your computer, every person uses the same connection.
- Re:agent takes one step at a time, in one browser at a time.

## Next steps

- Add [files for uploads](https://rehearsal.dev/docs/reagent/files.md) when one person sends a file to another.
- See the [Invite a member and join](https://rehearsal.dev/docs/examples/invite-a-member.md) example.
