-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathaccount-update.feature
More file actions
21 lines (20 loc) · 1.13 KB
/
account-update.feature
File metadata and controls
21 lines (20 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Feature: Update account information
Background:
Given we are followed by "Alice"
Scenario: Update account information
Given an authenticated "put" request is made to "/.ghost/activitypub/account" with the data:
| name | Updated Name |
| bio | Updated bio |
| username | updatedUsername |
| avatarUrl | https://example.com/avatar.jpg |
| bannerImageUrl | https://example.com/banner.jpg |
And the request is accepted with a 200
When an authenticated "get" request is made to "/.ghost/activitypub/account/me"
Then the request is accepted with a 200
And the response contains the account details:
| name | Updated Name |
| bio | Updated bio |
| avatarUrl | https://example.com/avatar.jpg |
| bannerImageUrl | https://example.com/banner.jpg |
| handle | @updatedUsername@fake-ghost-activitypub.test |
And a "Update(Us)" activity is sent to "Alice"