Skip to content

Commit 2a09420

Browse files
committed
Invite user test prompt in mcp tutorial
1 parent 258ff57 commit 2a09420

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/content/docs/tutorial/generate-tests-playwright-mcp.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,23 @@ Here are a few more prompts you can try out to generate more tests (don't forget
389389
- verify that the new email is displayed on the general page in the email field.
390390
```
391391

392+
#### Invite a new user
393+
```
394+
# Test scenario
395+
- Navigate to the dashboard at /dashboard.
396+
- Navigate to the team settings section.
397+
- Copy the name/email of the currently only team member.
398+
- Fill in the Invite Team Member email field with a new randomly generated email.
399+
- Click the "Invite" button.
400+
- The application will console.log the invitation id in the format [inviteState] {id}.
401+
r
402+
- Sign out
403+
- Sign up with the new email and password "testpassword123".
404+
- Verify that we are logged in and on the team settings page.
405+
- Verify that there are two team members in the team members list.
406+
- Verify that the new team member's name/email is displayed in the team members list.
407+
```
408+
392409

393410

394411
## List of bugs we found and fixed in the course of generating these tests

0 commit comments

Comments
 (0)