Feature: KVS GraphQL (place + members)

  Background: Authorize as employer
    When get access token
    Then access token is valid

  Scenario: Get place info (dynamic place, no hardcode)
    When create place for kvs
    And query place members for created kvs place
    Then kvs place members response has correct shape for created place

  Scenario: Add user to place and verify member appears
    When create place for kvs
    And create user for kvs
    And add user to kvs place
    Then addUserToPlace response is valid
    When query place members for created kvs place
    Then added member is present in place members results

  Scenario: Update member status and verify via members query
    When create place for kvs
    And create two users for kvs
    And add both users to kvs place
 
    When query members by created kvs place
    Then members response contains two created users with statuses accepted and pending
    When update second kvs user status to accepted
    And query members by created kvs place
    Then members response contains two created users with status accepted