Remove async of cypress command and add contribution default value to post edit _id.

This commit is contained in:
elweyn 2023-06-08 09:44:11 +02:00
parent 65b8780786
commit 5b40122b0e
2 changed files with 6 additions and 3 deletions

View File

@ -49,9 +49,8 @@ Cypress.Commands.add(
'mutate',
{ prevSubject: true },
(graphQLClient, mutation, variables, response) => {
return new Cypress.Promise(async (resolve, reject) => {
return new Cypress.Promise((resolve, reject) => {
graphQLClient.request(mutation, variables).then(() => resolve(graphQLClient))
})
})

View File

@ -41,7 +41,11 @@ export default {
}),
},
data() {
return { contribution: {} }
return {
contribution: {
postType: ['Article'],
}
}
},
async asyncData(context) {
const {