visit
, visitEvent
, link
, and press
.
Name | Type | Required | Default | Description |
---|---|---|---|---|
method | string | true | The HTTP method to use for the request. | |
route | string | false | The framework route to execute. | |
event | string | false | The framework event to execute. | |
parameters | struct | false | {} |
A struct of parameters to attach to the request. The parameters are attached to framework's collection. |
it( "can make an request through the framework", function() {
this.visit( "/login" )
.makeRequest(
method = "POST",
route = "/sessions",
parameters = {
userId = 1
}
);
} );