
* fix failing tests * fix tests for gift cards * fix tests for gift cards * upload video only when fail * fix preorder time * fixed translation page * fix navigation, stripe and adyen * fix graphQl npm * update stories
31 lines
664 B
JavaScript
31 lines
664 B
JavaScript
export function updateMetadata(token, key, value) {
|
|
const mutation = `mutation{
|
|
updateMetadata(id:"${token}" input:{
|
|
key:"${key}",
|
|
value:"${value}"
|
|
}){
|
|
errors{
|
|
field
|
|
message
|
|
}
|
|
}
|
|
}`;
|
|
return cy.sendRequestWithQuery(mutation).its("body.data.updateMetadata");
|
|
}
|
|
|
|
export function updatePrivateMetadata(token, key, value) {
|
|
const mutation = `mutation{
|
|
updatePrivateMetadata(id:"${token}" input:{
|
|
key:"${key}",
|
|
value:"${value}"
|
|
}){
|
|
errors{
|
|
field
|
|
message
|
|
}
|
|
}
|
|
}`;
|
|
return cy
|
|
.sendRequestWithQuery(mutation)
|
|
.its("body.data.updatePrivateMetadata");
|
|
}
|