test(release): verify client feedback rollout
This commit is contained in:
@@ -53,6 +53,7 @@ const lexicalDocument = {
|
||||
}
|
||||
|
||||
let mediaID: number
|
||||
const cleanup: Array<() => Promise<unknown>> = []
|
||||
|
||||
const publicationCases: PublicationCase[] = [
|
||||
{
|
||||
@@ -139,6 +140,10 @@ describe('draft-enabled collection publication contract', () => {
|
||||
})
|
||||
|
||||
afterAll(async () => {
|
||||
for (const removeFixture of cleanup.reverse()) {
|
||||
await removeFixture()
|
||||
}
|
||||
|
||||
if (mediaID) {
|
||||
await payload.delete({ collection: 'media', id: mediaID })
|
||||
}
|
||||
@@ -170,6 +175,20 @@ describe('draft-enabled collection publication contract', () => {
|
||||
data: data(`${collection}-unpublished`),
|
||||
draft: false,
|
||||
})
|
||||
cleanup.push(
|
||||
() =>
|
||||
payload.delete({
|
||||
collection,
|
||||
context: { disableRevalidate: true },
|
||||
id: published.id,
|
||||
}),
|
||||
() =>
|
||||
payload.delete({
|
||||
collection,
|
||||
context: { disableRevalidate: true },
|
||||
id: unpublished.id,
|
||||
}),
|
||||
)
|
||||
|
||||
const storedDraft = await payload.update({
|
||||
collection,
|
||||
|
||||
Reference in New Issue
Block a user