graphql

package
v0.0.0-...-4cdcb29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertResponseForExpectedState

func AssertResponseForExpectedState(t *testing.T, response *httpexpect.Response, expectedState map[string]interface{})

func GetArray

func GetArray(response *httpexpect.Response, queryName string) *httpexpect.Array

func GetValue

func GetValue(response *httpexpect.Response, queryName, key string) *httpexpect.Value

func LoadGraphQL

func LoadGraphQL(t *testing.T, name string, replacements map[string]string) string

func PrepareCart

func PrepareCart(t *testing.T, e *httpexpect.Expect)

PrepareCart adds a simple product via graphQl

func PrepareCartWithPaymentSelection

func PrepareCartWithPaymentSelection(t *testing.T, expect *httpexpect.Expect, paymentMethod string, marketPlaceCode *string)

PrepareCartWithPaymentSelection adds a simple product via graphQl

func SpaceMap

func SpaceMap(str string) string

SpaceMap strips all whitespace from given string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL