update: (variable, value) =>
this.httpClient.post({
endpoint: "",
body: "pref_%s=%s&csrf_token=%s".format(
body: "pref_%s=%s".format(
encodeURIComponent(variable),
encodeURIComponent(value),
encodeURIComponent(value)
csrf_token
),
headers: {
"Content-Type":
Cypress.Commands.add("set_syspref", (variable, value) => {
cy.window().then(win => {
const client = win.APIClient.syspref;
const client = win.APIClient.sysprefs;
return client.sysprefs.update(variable, value);
});
-