mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Remove async of cypress command and add contribution default value to post edit _id.
This commit is contained in:
parent
65b8780786
commit
5b40122b0e
@ -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))
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@ -41,7 +41,11 @@ export default {
|
||||
}),
|
||||
},
|
||||
data() {
|
||||
return { contribution: {} }
|
||||
return {
|
||||
contribution: {
|
||||
postType: ['Article'],
|
||||
}
|
||||
}
|
||||
},
|
||||
async asyncData(context) {
|
||||
const {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user