<aside> ❗ kumparan used GraphQL for querying and manipulating data.
</aside>
User want to block other user.
Feature script contain test scenario and preparation before executing the test scenario.
In this feature script, there is preparation that involves getting an auth token as a user reader. After preparing the auth token, the test gets executed by calling the query and setting the variable userID
, then asserting it by checking its response status and response data, which is boolean.
For querying, the usual query using GraphQL gets sent to the helper script for processing before getting returned to the feature script.
If it is required, there is a fragment script so that all the data required can be used in other query scripts.