📅  最后修改于: 2022-03-11 14:47:41.636000             🧑  作者: Mango
Cypress.Commands.add('createUser', ({ email, name, password }) => {
cy.request('POST', Cypress.env('apiEndpoint'), {
query: print(SIGNUP),
variables: {
input: {
email,
name,
password
}
}
});
});