Fixed member bulk actions acceptance tests

refs https://github.com/TryGhost/Team/issues/1077
refs https://github.com/allouis/Ghost/commit/cdbccdeba

These tests were forgotten in the update to the API.
This commit is contained in:
Fabien O'Carroll 2021-10-01 14:21:14 +02:00
parent da76a6ebf9
commit 58653690bd

View File

@ -500,7 +500,9 @@ describe('Members API', function () {
.put(localUtils.API.getApiQuery('members/bulk/?filter=label:bulk-unsubscribe-test'))
.set('Origin', config.get('url'))
.send({
action: 'unsubscribe'
bulk: {
action: 'unsubscribe'
}
})
.expect('Content-Type', /json/)
.expect('Cache-Control', testUtils.cacheRules.private)
@ -551,9 +553,11 @@ describe('Members API', function () {
.put(localUtils.API.getApiQuery('members/bulk/?filter=label:bulk-add-labels-test'))
.set('Origin', config.get('url'))
.send({
action: 'addLabel',
meta: {
label: labelToAdd
bulk: {
action: 'addLabel',
meta: {
label: labelToAdd
}
}
})
.expect('Content-Type', /json/)
@ -581,9 +585,11 @@ describe('Members API', function () {
.put(localUtils.API.getApiQuery('members/bulk/?filter=label:bulk-add-labels-test'))
.set('Origin', config.get('url'))
.send({
action: 'removeLabel',
meta: {
label: labelToRemove
bulk: {
action: 'removeLabel',
meta: {
label: labelToRemove
}
}
})
.expect('Content-Type', /json/)