Create a page which makes an authenticated request to /api/members to receive a list of members, and present as a list
Scenario: Member List
In order to view members
As a Manager,
I want to see the list of members so that I can see who is involved with Farset
Feature: Happy Path
Given I have authenticated
When I go to the admin panel
And make a request to /api/members
Then I will receive a list of Members
And I will display them
Feature: Non manager accessing member list
Given I have authenticated as a non manager
When I go to the admin panel
And make a request to /api/members
Then I will receive a 401 response
And I will display an error message
In case the server endpoints do not exist use the following data structure for testing purposes
{
"members": [
{
"id": 1,
"user": {
"first_name": "Test",
"last_name": "User",
"email": "test@example.com"
}
}
]
}
Create a page which makes an authenticated request to
/api/membersto receive a list of members, and present as a listScenario: Member List
In order to view members
As a Manager,
I want to see the list of members so that I can see who is involved with Farset
Feature: Happy Path
Given I have authenticated
When I go to the admin panel
And make a request to /api/members
Then I will receive a list of Members
And I will display them
Feature: Non manager accessing member list
Given I have authenticated as a non manager
When I go to the admin panel
And make a request to /api/members
Then I will receive a 401 response
And I will display an error message
In case the server endpoints do not exist use the following data structure for testing purposes